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_
6 #include "libgnumeric.h"
7 #include <pango/pango.h>
17 GOFontMetrics
*metrics
;
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 /****************************************************************/
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);
49 #endif /* _GNM_STYLE_FONT_H_ */