summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfont.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-04-29 05:52:35 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-04-29 05:52:35 +0000
commit6ba19a0b8cc7f9c05f2df899fce69036d6bca9bc (patch)
tree24d25802b41dfef43761e30448e398ef396596fa /pango/pangocairo-fcfont.c
parent73747bd0e4599b0777149215b6ae2a982e1166d9 (diff)
downloadpango-6ba19a0b8cc7f9c05f2df899fce69036d6bca9bc.tar.gz
Bug 307196 – Unhinted fonts are measured incorrectly and drawing
2006-04-29 Behdad Esfahbod <behdad@gnome.org> Bug 307196 – Unhinted fonts are measured incorrectly and drawing problems occur as a result * pango/pangofc-font.c (get_face_metrics), (pango_fc_font_get_raw_extents): * pango/pangoxft-font.c (_pango_xft_font_new): Rollback previous change that forced metrics hinting always on. * pango/pangocairo-fcfont.c (_pango_cairo_fc_font_new): Set fcfont metrics hinting based on cairo font options.
Diffstat (limited to 'pango/pangocairo-fcfont.c')
-rw-r--r--pango/pangocairo-fcfont.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pangocairo-fcfont.c b/pango/pangocairo-fcfont.c
index af4647c1..43882c83 100644
--- a/pango/pangocairo-fcfont.c
+++ b/pango/pangocairo-fcfont.c
@@ -645,5 +645,10 @@ _pango_cairo_fc_font_new (PangoCairoFcFontMap *cffontmap,
cffont->options = cairo_font_options_copy (_pango_cairo_context_get_merged_font_options (context));
+ /* fcfont's is_hinted controls metric hinting
+ */
+ PANGO_FC_FONT(cffont)->is_hinted =
+ (cairo_font_options_get_hint_metrics(cffont->options) != CAIRO_HINT_METRICS_OFF);
+
return PANGO_FC_FONT (cffont);
}