diff options
author | Edwin Steiner <edwin.steiner@gmail.com> | 2021-09-16 23:08:46 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2021-09-16 23:08:46 -0400 |
commit | 6e1ef98a04e5f8528ffc8f17c6674e5dee9c43ad (patch) | |
tree | 50a4386bcddd79cabea78c55605c5ec6e769f6bf | |
parent | fce74b73653a6b871f6165ba289120c29044eb38 (diff) | |
download | freetype2-6e1ef98a04e5f8528ffc8f17c6674e5dee9c43ad.tar.gz |
[cff] Explicitly set StandardEncoding or ExpertEncoding offsets.
Fixes #1097.
* src/cff/cffload.c (cff_encoding_load): Set special offset values.
-rw-r--r-- | src/cff/cffload.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cff/cffload.c b/src/cff/cffload.c index 9996fa70a..9a9e0b9d8 100644 --- a/src/cff/cffload.c +++ b/src/cff/cffload.c @@ -1818,7 +1818,8 @@ /* Construct code to GID mapping from code to SID mapping */ /* and charset. */ - encoding->count = 0; + encoding->offset = offset; /* used in cff_face_init */ + encoding->count = 0; error = cff_charset_compute_cids( charset, num_glyphs, stream->memory ); |