diff options
author | Hans Breuer <hans@breuer.org> | 2004-02-28 23:30:40 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2004-02-28 23:30:40 +0000 |
commit | 8c63149f9fbe831f06d855249633a6d3be975867 (patch) | |
tree | 071a284cdd03a72888e013c03f7ab44560486f96 /pango/pangowin32-fontmap.c | |
parent | b89ad78ec0b6ad809f93c326a3b78c1e5e605414 (diff) | |
download | pango-8c63149f9fbe831f06d855249633a6d3be975867.tar.gz |
updated externals including patch from J. Ali Harlow <ali@juiblex.co.uk>,
2004-02-28 Hans Breuer <hans@breuer.org>
* pango/pango.def : updated externals including
patch from J. Ali Harlow <ali@juiblex.co.uk>, fixes bug #135518
* pango/pangowin32-fontmap.c : implement list_sizes() and
is_monospace() members
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r-- | pango/pangowin32-fontmap.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 4ecda7e5..9c446866 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -75,6 +75,8 @@ struct _PangoWin32Family char *family_name; GSList *font_entries; + + gboolean is_monospace; }; struct _PangoWin32SizeInfo @@ -93,6 +95,10 @@ struct _PangoWin32SizeInfo GType pango_win32_family_get_type (void); GType pango_win32_face_get_type (void); +static void pango_win32_face_list_sizes (PangoFontFace *face, + int **sizes, + int *n_sizes); + static void pango_win32_font_map_init (PangoWin32FontMap *fontmap); static void pango_win32_font_map_class_init (PangoFontMapClass *class); @@ -327,9 +333,9 @@ pango_win32_family_get_name (PangoFontFamily *family) static gboolean pango_win32_family_is_monospace (PangoFontFamily *family) { - /* FIXME: implement me */ - g_warning ("is_monospace not implemented for win32 backend"); - return FALSE; + PangoWin32Family *win32family = PANGO_WIN32_FAMILY (family); + + return win32family->is_monospace; } static void @@ -795,6 +801,7 @@ pango_win32_insert_font (PangoWin32FontMap *win32fontmap, { case FF_MODERN : /* monospace */ PING(("monospace")); + font_family->is_monospace = TRUE; /* modify before reuse */ font_family = pango_win32_get_font_family (win32fontmap, "monospace"); font_family->font_entries = g_slist_append (font_family->font_entries, win32face); win32fontmap->n_fonts++; @@ -950,7 +957,10 @@ pango_win32_face_list_sizes (PangoFontFace *face, int **sizes, int *n_sizes) { - g_warning ("font_face_list_sizes not implemented for win32 backend"); + /* + * for scalable fonts it's simple, and currently we only have such + * see : pango_win32_enum_proc(), TRUETYPE_FONTTYPE + */ *sizes = NULL; *n_sizes = 0; } |