summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-02-25 20:06:45 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-02-25 20:06:45 +0000
commitabacca30f29df84d9818cd1395449eff0e4ee171 (patch)
tree4541c04064b0b00416a76d7408d777f6b47b4963 /pango/pango-attributes.c
parent3c1ef3b659b2ffdb9613c8d2d330b64dc1fd0963 (diff)
downloadpango-abacca30f29df84d9818cd1395449eff0e4ee171.tar.gz
Add size to the font description structure instead of continually passing
Fri Feb 25 15:04:21 2000 Owen Taylor <otaylor@redhat.com> * libpango/{fonts.c,pango-font.h,pango-context.[ch],pangox.c, pango-attributes.c,examples/viewer.c: Add size to the font description structure instead of continually passing it around as an extra argument. * libpango/pangox.c: Take screen resolution into account when choosing fonts, instead of assumming point == pixel.
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index cdbbbbbb..e75a56f7 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -908,6 +908,9 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
if ((attr = pango_attr_iterator_get (iterator, PANGO_ATTR_STRETCH)))
current->stretch = ((PangoAttrInt *)attr)->value;
+
+ if ((attr = pango_attr_iterator_get (iterator, PANGO_ATTR_SIZE)))
+ current->size = ((PangoAttrInt *)attr)->value;
}