[truetype] Minor improvement.

* src/truetype/ttgload.c (TT_Process_Simple_Glyph,
load_truetype_glyph): Remove unnecessary tests.
This commit is contained in:
Werner Lemberg 2017-02-23 14:24:01 +01:00
parent d4b6a2053f
commit 01f315f076
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2017-02-23 Werner Lemberg <wl@gnu.org>
[truetype] Minor improvement.
* src/truetype/ttgload.c (TT_Process_Simple_Glyph,
load_truetype_glyph): Remove unnecessary tests.
2017-02-23 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/tttypes.h (TT_Face): s/isCFF2/is_cff2/.

View File

@ -886,7 +886,7 @@
#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
if ( loader->face->doblend && !loader->face->is_default_instance )
if ( !loader->face->is_default_instance )
{
/* Deltas apply to the unscaled data. */
error = TT_Vary_Apply_Glyph_Deltas( loader->face,
@ -1574,7 +1574,7 @@
#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
if ( loader->face->doblend && !loader->face->is_default_instance )
if ( !loader->face->is_default_instance )
{
/* a small outline structure with four elements for */
/* communication with `TT_Vary_Apply_Glyph_Deltas' */
@ -1745,7 +1745,7 @@
#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
if ( face->doblend && !face->is_default_instance )
if ( !face->is_default_instance )
{
short i, limit;
FT_SubGlyph subglyph;