diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-05-09 16:33:59 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@redhat.com> | 2005-05-09 16:33:59 +0000 |
commit | 7b46c815d2652a02aca77a3a962a37e22e9d04fb (patch) | |
tree | 2c0c5df04f07accc5741cc7468e4f3fbfe01e304 /src | |
parent | 01b2526ceb77e43f653f2909f6ff998a956d72a5 (diff) |
Get the glyphslot point *after* we get the FT_Face. (Robert O'Callahan)
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-ft-font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index d7deba56..c02cd61e 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -525,13 +525,13 @@ _cairo_ft_unscaled_font_create_glyph (void *abstract_ FT_Glyph_Metrics *metrics; cairo_status_t status = CAIRO_STATUS_SUCCESS; - glyphslot = unscaled->face->glyph; - metrics = &glyphslot->metrics; - face = _ft_unscaled_font_lock_face (unscaled); if (!face) return CAIRO_STATUS_NO_MEMORY; + glyphslot = face->glyph; + metrics = &glyphslot->metrics; + _ft_unscaled_font_set_scale (unscaled, &val->key.scale); if (FT_Load_Glyph (face, val->key.index, val->key.flags) != 0) { |