summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-attributes.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 4f9b1d55..9551eb60 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1936,8 +1936,12 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
}
if (have_scale)
- pango_font_description_set_size (desc, scale * pango_font_description_get_size (desc));
-
+ {
+ if (pango_font_description_get_size_is_absolute (desc))
+ pango_font_description_set_absolute_size (desc, scale * pango_font_description_get_size (desc));
+ else
+ pango_font_description_set_size (desc, scale * pango_font_description_get_size (desc));
+ }
}
/**