diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-07-21 21:49:57 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-07-21 21:49:57 +0000 |
commit | 3c8847e5d3b4e2b2244742ad684a555933f7e67d (patch) | |
tree | 653c8ddd942cab3e7d7d490f4a031d7968b776e4 | |
parent | 273cd2595e0f2b5f0c8d7d851ce22a70d03d80c2 (diff) | |
download | pango-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)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 7 | ||||
-rw-r--r-- | pango/pangoxft-font.c | 6 |
3 files changed, 20 insertions, 0 deletions
@@ -1,5 +1,12 @@ 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) + +2005-07-21 Owen Taylor <otaylor@redhat.com> + * README: Update information about the location of Xft. (#172637, Karel 'Clock' Kulhavy) diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index e16c3315..5cccd6b1 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,5 +1,12 @@ 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) + +2005-07-21 Owen Taylor <otaylor@redhat.com> + * README: Update information about the location of Xft. (#172637, Karel 'Clock' Kulhavy) 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; |