GUI: Move .ui files from goffice resources to glib resources
[gnumeric.git] / src / style-font.h
blobf998f1102bac150e0b81b94eb6b5d512ee0022c9
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef _GNM_STYLE_FONT_H_
3 # define _GNM_STYLE_FONT_H_
5 #include "gnumeric.h"
6 #include "libgnumeric.h"
7 #include <pango/pango.h>
9 G_BEGIN_DECLS
11 struct _GnmFont {
12 int ref_count;
13 char *font_name;
14 double size_pts;
15 struct _GnmGOFont {
16 GOFont const *font;
17 GOFontMetrics *metrics;
18 } go;
19 PangoContext *context;
21 unsigned int is_bold : 1;
22 unsigned int is_italic : 1;
25 GType gnm_font_get_type (void);
26 GnmFont *gnm_font_new (PangoContext *context,
27 char const *font_name,
28 double size_pts, gboolean bold, gboolean italic);
29 GnmFont *gnm_font_ref (GnmFont *gfont);
30 void gnm_font_unref (GnmFont *gfont);
31 guint gnm_font_hash (gconstpointer v);
32 gint gnm_font_equal (gconstpointer v, gconstpointer v2);
34 GNM_VAR_DECL double gnm_font_default_width;
36 int gnm_font_override_codepage (gchar const *font_name);
38 /****************************************************************/
39 /* Internal */
40 void gnm_font_init (void);
41 void gnm_font_shutdown (void);
43 /****************************************************************/
44 /* Internal : Deprecated : Wrong place */
45 PangoContext *gnm_pango_context_get (void);
47 G_END_DECLS
49 #endif /* _GNM_STYLE_FONT_H_ */