summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2001-03-12 00:42:41 +0000
committerSven Neumann <neo@src.gnome.org>2001-03-12 00:42:41 +0000
commit2ebe73ff42ea4cf55421d1a28f6cd1ef32aaa632 (patch)
treeb733cd0fe613dc3884fce9660dd63bdc2f0b8ce0 /pango
parentb424b77a0ad498c258877ab8d0aab6afa6e2f499 (diff)
downloadpango-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.c10
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 *