summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-03-15 23:00:28 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-03-15 23:00:28 +0000
commitcc35f77a1b4e40ba85d583d0b0f301c288adb930 (patch)
tree2544826477ac2343fa2d121f6ef7438bb1fe770a /pango/pangofc-fontmap.h
parentc6fb33e1dde1721132273b038923e1d2da3abba3 (diff)
downloadpango-cc35f77a1b4e40ba85d583d0b0f301c288adb930.tar.gz
Include the effect of the CTM in the FC_PIXEL_SIZE we set in the
2005-03-15 Owen Taylor <otaylor@redhat.com> * pango/pangofc-fontmap.c: Include the effect of the CTM in the FC_PIXEL_SIZE we set in the FcPattern. (Fixes problems with getting the wrong font when drawing the same font at multiple scales. Reported by Keith Packard.) * pango/pangofc-fontmap.h pango/pangocairo-fcfontmap.c pango/pangocairo-fc.h pango/pangocairo-fontfont.c: Add the PangoFontDescription to create_font() ... we need it to get the right pixel size to combine with the CTM. * pango/pangofc-fontmap.c (pango_fc_fontmap_get_dpi): Extract out the logic for finding the DPI from the size-listing code. (pango_fc_font_map_get_render_key): Handle mix of absolute and not sizes correctly.
Diffstat (limited to 'pango/pangofc-fontmap.h')
-rw-r--r--pango/pangofc-fontmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.h b/pango/pangofc-fontmap.h
index 3cc87512..4e98bc78 100644
--- a/pango/pangofc-fontmap.h
+++ b/pango/pangofc-fontmap.h
@@ -103,6 +103,7 @@ struct _PangoFcFontMapClass
guint *flags);
PangoFcFont *(*create_font) (PangoFcFontMap *fontmap,
PangoContext *context,
+ const PangoFontDescription *desc,
FcPattern *pattern);
/*< private >*/