summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fc.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/pangocairo-fc.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/pangocairo-fc.h')
-rw-r--r--pango/pangocairo-fc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/pango/pangocairo-fc.h b/pango/pangocairo-fc.h
index 6335058d..8e0d9a5d 100644
--- a/pango/pangocairo-fc.h
+++ b/pango/pangocairo-fc.h
@@ -45,9 +45,10 @@ struct _PangoCairoFcFontMap
GType pango_cairo_fc_font_map_get_type (void);
-PangoFcFont *_pango_cairo_fc_font_new (PangoCairoFcFontMap *cffontmap,
- PangoContext *context,
- FcPattern *pattern);
+PangoFcFont *_pango_cairo_fc_font_new (PangoCairoFcFontMap *cffontmap,
+ PangoContext *context,
+ const PangoFontDescription *desc,
+ FcPattern *pattern);
gboolean _pango_cairo_fc_get_render_key (PangoCairoFcFontMap *cffontmap,
PangoContext *context,