summaryrefslogtreecommitdiff
path: root/pango/pangoxft-font.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-09-22 20:31:54 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-09-22 20:31:54 +0000
commit6ce8121cc5b7ad6e5eb14cae75dc8faf98b296dc (patch)
tree79a2403a8461c8c6799897155de9528588a2c918 /pango/pangoxft-font.c
parentbb2d38b6dd3c79e9b3a8501072ead2c7555aadd4 (diff)
downloadpango-6ce8121cc5b7ad6e5eb14cae75dc8faf98b296dc.tar.gz
Use get_glyph_extents_raw() when hinting is disabled as well as when we
Wed Sep 22 16:15:40 2004 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-font.c (pango_xft_font_get_glyph_extents): Use get_glyph_extents_raw() when hinting is disabled as well as when we are transforming. (#152529, Vincent Noel) * pango/pangofc-font.c (pango_fc_font_get_raw_extents): Duplicate the fix for non-scalable fonts from get_face_metrics() here as well.
Diffstat (limited to 'pango/pangoxft-font.c')
-rw-r--r--pango/pangoxft-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c
index d7c6bf3a..9834ba6b 100644
--- a/pango/pangoxft-font.c
+++ b/pango/pangoxft-font.c
@@ -542,7 +542,7 @@ pango_xft_font_get_glyph_extents (PangoFont *font,
}
else if (glyph)
{
- if (!fcfont->is_transformed)
+ if (!fcfont->is_transformed && fcfont->is_hinted)
get_glyph_extents_xft (fcfont, glyph, ink_rect, logical_rect);
else
get_glyph_extents_raw (xfont, glyph, ink_rect, logical_rect);