summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-03-01 21:34:49 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-03-01 21:34:49 +0000
commit6e0ad63d99f043529434fc703c022d80537afdce (patch)
tree6b62652c05ec02ab6c69589c550a45be74375cf8 /pango/pangoxft-font.c
parent857c69a5513be76ed91a7989b4831a0d47e01fe9 (diff)
downloadpango-6e0ad63d99f043529434fc703c022d80537afdce.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)
Diffstat (limited to 'pango/pangoxft-font.c')
-rw-r--r--pango/pangoxft-font.c5
1 files changed, 4 insertions, 1 deletions
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);