summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.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/pangoxft-font.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/pangoxft-font.c')
-rw-r--r--pango/pangoxft-font.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c
index d0ef5caa..fe3844fb 100644
--- a/pango/pangoxft-font.c
+++ b/pango/pangoxft-font.c
@@ -96,6 +96,12 @@ _pango_xft_font_new (PangoXftFontMap *xftfontmap,
"pattern", pattern,
NULL);
+ /* Hack to force hinting of vertical metrics; hinting off for
+ * a Xft font just means to not hint outlines, but we still
+ * want integer line spacing, underline positions, etc
+ */
+ PANGO_FC_FONT (xfont)->is_hinted = TRUE;
+
xfont->xft_font = NULL;
return xfont;