diff options
author | John Tytgat <John.Tytgat@esko.com> | 2019-10-09 15:37:19 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2019-10-09 15:37:19 +0200 |
commit | 1e9229f0fcb46fd4cd8e0fdc48fb4a44ddb7a8a1 (patch) | |
tree | 0db486a8acbe58adc5d77f548e4d537d53be7103 /src/cff | |
parent | 5a1a79c0e8de8e886cc347ad22801982e8298a06 (diff) | |
download | freetype2-1e9229f0fcb46fd4cd8e0fdc48fb4a44ddb7a8a1.tar.gz |
[cff] Fix FT_FACE_FLAG_GLYPH_NAMES for CFF2 based fonts (#57023).
* src/cff/cffobjs.c (cff_face_init): Don't set FT_FACE_FLAG_GLYPH_NAMES
for CFF2 based fonts.
Diffstat (limited to 'src/cff')
-rw-r--r-- | src/cff/cffobjs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c index f76245f30..2aad36337 100644 --- a/src/cff/cffobjs.c +++ b/src/cff/cffobjs.c @@ -1018,9 +1018,9 @@ } #ifndef FT_CONFIG_OPTION_NO_GLYPH_NAMES - /* CID-keyed CFF fonts don't have glyph names -- the SFNT loader */ - /* has unset this flag because of the 3.0 `post' table. */ - if ( dict->cid_registry == 0xFFFFU ) + /* CID-keyed CFF or CFF2 fonts don't have glyph names -- the SFNT */ + /* loader has unset this flag because of the 3.0 `post' table. */ + if ( dict->cid_registry == 0xFFFFU && !cff2 ) cffface->face_flags |= FT_FACE_FLAG_GLYPH_NAMES; #endif |