* src/truetype/ttdriver.c (tt_size_request): Properly check `error'.

Reported by Earnestly <zibeon@googlemail.com> in

  http://lists.nongnu.org/archive/html/freetype/2017-04/msg00031.html
This commit is contained in:
Werner Lemberg 2017-04-29 06:47:14 +02:00
parent e9e2e5d460
commit 785833d96e
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2017-04-29 Werner Lemberg <wl@gnu.org>
* src/truetype/ttdriver.c (tt_size_request): Properly check `error'.
Reported by Earnestly <zibeon@googlemail.com> in
http://lists.nongnu.org/archive/html/freetype/2017-04/msg00031.html
2017-04-27 Werner Lemberg <wl@gnu.org>
Introduce AF_CONFIG_OPTION_TT_SIZE_METRICS configuration option.

View File

@ -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 )

View File

@ -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