summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2009-01-28 22:08:10 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-28 22:08:10 +0000
commit042b6e674a82f7749c9762170aef4b5fb52a4f05 (patch)
tree1c72924a5bb075e85774b8dd5c28aba45c3f2827 /pango/pangocairo-fcfontmap.c
parent39b9608f510de716210f02dc893e36b468e44731 (diff)
downloadpango-042b6e674a82f7749c9762170aef4b5fb52a4f05.tar.gz
Bug 567165 – Apply all pattern matrices
2009-01-09 Behdad Esfahbod <behdad@gnome.org> Bug 567165 – Apply all pattern matrices * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): * pango/pangofc-fontmap.c (pango_fc_font_map_new_font): Apply all FC_MATRIX values, not just the first one. Fixes synthetic italic rotated text with ft2 and xft backends. Can't believe no one ever noticed that they are broken... svn path=/trunk/; revision=2808
Diffstat (limited to 'pango/pangocairo-fcfontmap.c')
-rw-r--r--pango/pangocairo-fcfontmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/pangocairo-fcfontmap.c b/pango/pangocairo-fcfontmap.c
index c66602b6..c2b410ee 100644
--- a/pango/pangocairo-fcfontmap.c
+++ b/pango/pangocairo-fcfontmap.c
@@ -80,14 +80,14 @@ pango_cairo_fc_font_map_finalize (GObject *object)
}
static void
-pango_cairo_fc_font_map_font_key_substitute (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
- PangoFcFontKey *fontkey,
- FcPattern *pattern)
+pango_cairo_fc_font_map_fontset_key_substitute (PangoFcFontMap *fcfontmap G_GNUC_UNUSED,
+ PangoFcFontsetKey *fontkey,
+ FcPattern *pattern)
{
FcConfigSubstitute (NULL, pattern, FcMatchPattern);
if (fontkey)
- cairo_ft_font_options_substitute (pango_fc_font_key_get_context_key (fontkey),
+ cairo_ft_font_options_substitute (pango_fc_fontset_key_get_context_key (fontkey),
pattern);
FcDefaultSubstitute (pattern);
@@ -166,7 +166,7 @@ pango_cairo_fc_font_map_class_init (PangoCairoFcFontMapClass *class)
gobject_class->finalize = pango_cairo_fc_font_map_finalize;
- fcfontmap_class->font_key_substitute = pango_cairo_fc_font_map_font_key_substitute;
+ fcfontmap_class->fontset_key_substitute = pango_cairo_fc_font_map_fontset_key_substitute;
fcfontmap_class->get_resolution = pango_cairo_fc_font_map_get_resolution_fc;
fcfontmap_class->context_key_get = pango_cairo_fc_font_map_context_key_get;