summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-07-21 21:49:47 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-07-21 21:49:47 +0000
commitf5c6488e81267b50c5ce6335b928d90df6db6c9d (patch)
treea269e924a4678e5da1b819558d914bbb745a7b48
parent4c1291d2deeeb769487369b45164487ecb0768c5 (diff)
downloadpango-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)
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-1-107
-rw-r--r--pango/pangoxft-font.c6
3 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f7ead58..8f37bb85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 1f7ead58..8f37bb85 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;