diff options
author | Sven Neumann <sven@gimp.org> | 2001-03-12 00:42:41 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2001-03-12 00:42:41 +0000 |
commit | 2ebe73ff42ea4cf55421d1a28f6cd1ef32aaa632 (patch) | |
tree | b733cd0fe613dc3884fce9660dd63bdc2f0b8ce0 /pango | |
parent | b424b77a0ad498c258877ab8d0aab6afa6e2f499 (diff) | |
download | pango-2ebe73ff42ea4cf55421d1a28f6cd1ef32aaa632.tar.gz |
set the size field
2001-03-12 Sven Neumann <sven@gimp.org>
* pango/pangoft2.c (pango_ft2_font_describe): set the size field
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangoft2.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c index 4268c24c..dbe66c0c 100644 --- a/pango/pangoft2.c +++ b/pango/pangoft2.c @@ -860,9 +860,15 @@ pango_ft2_font_finalize (GObject *object) static PangoFontDescription * pango_ft2_font_describe (PangoFont *font) { - PangoFT2Font *ft2font = PANGO_FT2_FONT (font); + PangoFT2Font *ft2font; + PangoFontDescription *desc; - return pango_font_description_copy (&ft2font->entry->description); + ft2font = PANGO_FT2_FONT (font); + + desc = pango_font_description_copy (&ft2font->entry->description); + desc->size = ft2font->size; + + return desc; } PangoMap * |