* src/base/ftobjs.c (FT_Load_Glyph): Call the auto-hinter without

transformation since it recursively calls FT_Load_Glyph.  This fixes
Savannah bug #23143.
This commit is contained in:
Werner Lemberg 2008-05-03 15:54:15 +00:00
parent de9479a00d
commit 6d29f0f1e8
2 changed files with 23 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2008-05-03 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Load_Glyph): Call the auto-hinter without
transformation since it recursively calls FT_Load_Glyph. This fixes
Savannah bug #23143.
2008-04-26 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/psaux.h (T1_BuilderRec): Mark `scale_x'

View File

@ -634,12 +634,24 @@
goto Load_Ok;
}
/* load auto-hinted outline */
hinting = (FT_AutoHinter_Service)hinter->clazz->module_interface;
{
FT_Face_Internal internal = face->internal;
FT_Int transform_flags = internal->transform_flags;
error = hinting->load_glyph( (FT_AutoHinter)hinter,
slot, face->size,
glyph_index, load_flags );
/* since the auto-hinter calls FT_Load_Glyph by itself, */
/* make sure that glyphs aren't transformed */
internal->transform_flags = 0;
/* load auto-hinted outline */
hinting = (FT_AutoHinter_Service)hinter->clazz->module_interface;
error = hinting->load_glyph( (FT_AutoHinter)hinter,
slot, face->size,
glyph_index, load_flags );
internal->transform_flags = transform_flags;
}
}
else
{