summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e16c3315..5cccd6b1 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 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;