[hb-view] Use cached hb-ft face creation

Avoids recreating the face the second time we call draw().
This commit is contained in:
Behdad Esfahbod 2011-04-04 14:49:50 -04:00
parent 1b4a2cc095
commit ccc6745afa
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ _hb_cr_text_glyphs (cairo_t *cr,
{
cairo_scaled_font_t *scaled_font = cairo_get_scaled_font (cr);
FT_Face ft_face = cairo_ft_scaled_font_lock_face (scaled_font);
hb_face_t *hb_face = hb_ft_face_create (ft_face, NULL);
hb_face_t *hb_face = hb_ft_face_create_cached (ft_face);
hb_font_t *hb_font = hb_ft_font_create (ft_face, NULL);
hb_buffer_t *hb_buffer;
cairo_glyph_t *cairo_glyphs;