summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-07-21 21:49:57 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-07-21 21:49:57 +0000
commit3c8847e5d3b4e2b2244742ad684a555933f7e67d (patch)
tree653c8ddd942cab3e7d7d490f4a031d7968b776e4 /pango/pangoxft-font.c
parent273cd2595e0f2b5f0c8d7d851ce22a70d03d80c2 (diff)
downloadpango-3c8847e5d3b4e2b2244742ad684a555933f7e67d.tar.gz
Force on metrics hinting for all Xft fonts (this fixes font metrics -
2005-07-21 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (_pango_xft_font_new): Force on metrics hinting for all Xft fonts (this fixes font metrics - glyph metrics were fixed earlier). (#307196, Alex Jones)
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 7af080c7..f4726f59 100644
--- a/pango/pangoxft-font.c
+++ b/pango/pangoxft-font.c
@@ -96,6 +96,12 @@ _pango_xft_font_new (PangoXftFontMap *xftfontmap,
xfont = (PangoXftFont *)g_object_new (PANGO_TYPE_XFT_FONT,
"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;