diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-07-21 21:49:47 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-07-21 21:49:47 +0000 |
commit | f5c6488e81267b50c5ce6335b928d90df6db6c9d (patch) | |
tree | a269e924a4678e5da1b819558d914bbb745a7b48 /pango | |
parent | 4c1291d2deeeb769487369b45164487ecb0768c5 (diff) | |
download | pango-f5c6488e81267b50c5ce6335b928d90df6db6c9d.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')
-rw-r--r-- | pango/pangoxft-font.c | 6 |
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; |