suzuki toshiya pushed to branch master at FreeType / FreeType
Commits:
-
6ca0a935
by suzuki toshiya at 2023-05-11T14:31:23+00:00
2 changed files:
Changes:
... | ... | @@ -374,6 +374,14 @@ |
374 | 374 | if ( info->is_fixed_pitch )
|
375 | 375 | cidface->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
|
376 | 376 | |
377 | + /*
|
|
378 | + * For the sfnt-wrapped CID fonts for MacOS, currently,
|
|
379 | + * its `cmap' tables are ignored, and the content in
|
|
380 | + * its `CID ' table is treated the same as naked CID-keyed
|
|
381 | + * font. See ft_lookup_PS_in_sfnt_stream().
|
|
382 | + */
|
|
383 | + cidface->face_flags |= FT_FACE_FLAG_CID_KEYED;
|
|
384 | + |
|
377 | 385 | /* XXX: TODO: add kerning with .afm support */
|
378 | 386 | |
379 | 387 | /* get style name -- be careful, some broken fonts only */
|
... | ... | @@ -141,8 +141,14 @@ |
141 | 141 | FT_UNUSED( face );
|
142 | 142 | |
143 | 143 | |
144 | + /*
|
|
145 | + * XXX: If the ROS is Adobe-Identity-H or -V,
|
|
146 | + * the font has no reliable information about
|
|
147 | + * its glyph collection. Should we not set
|
|
148 | + * *is_cid in such cases?
|
|
149 | + */
|
|
144 | 150 | if ( is_cid )
|
145 | - *is_cid = 1; /* cid driver is only used for CID keyed fonts */
|
|
151 | + *is_cid = 1;
|
|
146 | 152 | |
147 | 153 | return error;
|
148 | 154 | }
|