diff --git a/ChangeLog b/ChangeLog index 1aae6ad8f..f4d31fbe3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2017-04-29 Werner Lemberg + + * src/truetype/ttdriver.c (tt_size_request): Properly check `error'. + + Reported by Earnestly in + + http://lists.nongnu.org/archive/html/freetype/2017-04/msg00031.html + 2017-04-27 Werner Lemberg Introduce AF_CONFIG_OPTION_TT_SIZE_METRICS configuration option. diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index 2094382a8..681d8e93d 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -2549,6 +2549,10 @@ FT_BEGIN_HEADER /* glyph relative to this size. For more information refer to */ /* `https://www.freetype.org/freetype2/docs/glyphs/glyphs-2.html'. */ /* */ + /* Contrary to @FT_Set_Char_Size, this function doesn't have special */ + /* code to normalize zero-valued widths, heights, or resolutions */ + /* (which lead to errors in most cases). */ + /* */ /* Don't use this function if you are using the FreeType cache API. */ /* */ FT_EXPORT( FT_Error ) diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c index c9f682e5e..a1653b241 100644 --- a/src/truetype/ttdriver.c +++ b/src/truetype/ttdriver.c @@ -360,6 +360,7 @@ #ifdef TT_USE_BYTECODE_INTERPRETER /* for the `MPS' bytecode instruction we need the point size */ + if ( !error ) { FT_UInt resolution = ttsize->metrics->x_ppem > ttsize->metrics->y_ppem