diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c index 6ee4e5e93..29d08789d 100644 --- a/src/sfnt/sfobjs.c +++ b/src/sfnt/sfobjs.c @@ -1127,7 +1127,7 @@ flags |= FT_FACE_FLAG_VERTICAL; /* kerning available ? */ - if ( TT_FACE_HAS_KERNING( face ) + if ( face->kern_avail_bits #ifdef TT_CONFIG_OPTION_GPOS_KERNING || face->gpos_kerning_available #endif diff --git a/src/sfnt/ttkern.h b/src/sfnt/ttkern.h index a54e51df1..2bf3914fa 100644 --- a/src/sfnt/ttkern.h +++ b/src/sfnt/ttkern.h @@ -40,8 +40,6 @@ FT_BEGIN_HEADER FT_UInt left_glyph, FT_UInt right_glyph ); -#define TT_FACE_HAS_KERNING( face ) ( (face)->kern_avail_bits != 0 ) - FT_END_HEADER diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c index 4ab68eb9a..5d5341d93 100644 --- a/src/truetype/ttdriver.c +++ b/src/truetype/ttdriver.c @@ -220,7 +220,7 @@ { /* Use 'kern' table if available since that can be faster; otherwise */ /* use GPOS kerning pairs if available. */ - if ( ttface->kern_avail_bits != 0 ) + if ( ttface->kern_avail_bits ) kerning->x = sfnt->get_kerning( ttface, left_glyph, right_glyph );