diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-03-01 21:34:09 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-03-01 21:34:09 +0000 |
commit | 70b45632204431300bf6acf91a48860ec37ae7af (patch) | |
tree | 41f2980e8f4266e32cb9c85c64fc76476a3c6364 | |
parent | 4b092ae98111aa6c74d8fa21ed4e42cd46fa6f7a (diff) | |
download | pango-70b45632204431300bf6acf91a48860ec37ae7af.tar.gz |
Delete FC_SPACING value out of pattern before passing it to Xft, to
2005-03-01 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-font.c (xft_font_get_font): Delete
FC_SPACING value out of pattern before passing it
to Xft, to prevent Xft clipping characters and
trashing metrics. (#164879, Billy Biggs)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 7 | ||||
-rw-r--r-- | pango/pangoxft-font.c | 5 |
3 files changed, 18 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2005-03-01 Owen Taylor <otaylor@redhat.com> + * pango/pangoxft-font.c (xft_font_get_font): Delete + FC_SPACING value out of pattern before passing it + to Xft, to prevent Xft clipping characters and + trashing metrics. (#164879, Billy Biggs) + +2005-03-01 Owen Taylor <otaylor@redhat.com> + Build fixes from Andrew P. Lentvorski, Jr, #164655 * pango/pangoft2-render.c: Duplicate the diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 381ecd6d..39c78de0 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,5 +1,12 @@ 2005-03-01 Owen Taylor <otaylor@redhat.com> + * pango/pangoxft-font.c (xft_font_get_font): Delete + FC_SPACING value out of pattern before passing it + to Xft, to prevent Xft clipping characters and + trashing metrics. (#164879, Billy Biggs) + +2005-03-01 Owen Taylor <otaylor@redhat.com> + Build fixes from Andrew P. Lentvorski, Jr, #164655 * pango/pangoft2-render.c: Duplicate the diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c index 632ec433..c8fab24c 100644 --- a/pango/pangoxft-font.c +++ b/pango/pangoxft-font.c @@ -381,9 +381,12 @@ xft_font_get_font (PangoFont *font) if (xfont->xft_font == NULL) { + FcPattern *pattern = FcPatternDuplicate (fcfont->font_pattern); + FcPatternDel (pattern, FC_SPACING); + _pango_xft_font_map_get_info (fcfont->fontmap, &display, &screen); - xfont->xft_font = XftFontOpenPattern (display, FcPatternDuplicate (fcfont->font_pattern)); + font->xft_font = XftFontOpenPattern (display, pattern); if (!xfont->xft_font) { gchar *name = pango_font_description_to_string (fcfont->description); |