summaryrefslogtreecommitdiff
path: root/pango/pangoxft-render.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-03-03 19:40:18 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-03-03 19:40:18 +0000
commitc29ccf10309f8c37de6385ef400774e803b596c4 (patch)
tree15f0aeb0c12376784b14a21f8c0eea01ac5bfb81 /pango/pangoxft-render.c
parentd348afb46f51fc779d3238acdc170fb563180622 (diff)
downloadpango-c29ccf10309f8c37de6385ef400774e803b596c4.tar.gz
Call XftCharIndex() on the right font. (#163511)
2005-03-03 Owen Taylor <otaylor@redhat.com> * pango/pangoxft-render.c (pango_xft_renderer_draw_glyphs): Call XftCharIndex() on the right font. (#163511)
Diffstat (limited to 'pango/pangoxft-render.c')
-rw-r--r--pango/pangoxft-render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pangoxft-render.c b/pango/pangoxft-render.c
index b3647a1f..b649afe4 100644
--- a/pango/pangoxft-render.c
+++ b/pango/pangoxft-render.c
@@ -343,6 +343,7 @@ pango_xft_renderer_draw_glyphs (PangoRenderer *renderer,
int cols;
PangoFont *mini_font = _pango_xft_font_get_mini_font (xfont);
+ XftFont *mini_xft_font = pango_xft_font_get_font (mini_font);
glyph &= ~PANGO_XFT_UNKNOWN_FLAG;
@@ -380,7 +381,7 @@ pango_xft_renderer_draw_glyphs (PangoRenderer *renderer,
for (col = 0; col < cols; col++)
{
draw_glyph (renderer, mini_font,
- XftCharIndex (NULL, xft_font,
+ XftCharIndex (NULL, mini_xft_font,
buf[row * cols + col] & 0xff),
xs[col+1],
ys[row+1]);