summaryrefslogtreecommitdiff
path: root/src/cid/cidobjs.c
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2023-05-11 14:31:23 +0000
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2023-05-11 14:31:23 +0000
commit6ca0a9356ff05c15edbc2bbd905221beacbef447 (patch)
treec5b7df93c0aec8bb901d0e9e78261326ef4258cb /src/cid/cidobjs.c
parentc3876354e5c0812ae5929f7e68849c2e611b720c (diff)
downloadfreetype2-6ca0a9356ff05c15edbc2bbd905221beacbef447.tar.gz
[t1cid] Set FT_FACE_FLAG_CID_KEYED.
* cidobjs.c (cid_face_init): Set FT_FACE_FLAG_CID_KEYED. * cidriver.c (cid_get_is_cid): Comment about the case that is_cid cannot guarantee the glyph collection specification.
Diffstat (limited to 'src/cid/cidobjs.c')
-rw-r--r--src/cid/cidobjs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c
index 1fc121c00..e11c41d8b 100644
--- a/src/cid/cidobjs.c
+++ b/src/cid/cidobjs.c
@@ -374,6 +374,14 @@
if ( info->is_fixed_pitch )
cidface->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
+ /*
+ * For the sfnt-wrapped CID fonts for MacOS, currently,
+ * its `cmap' tables are ignored, and the content in
+ * its `CID ' table is treated the same as naked CID-keyed
+ * font. See ft_lookup_PS_in_sfnt_stream().
+ */
+ cidface->face_flags |= FT_FACE_FLAG_CID_KEYED;
+
/* XXX: TODO: add kerning with .afm support */
/* get style name -- be careful, some broken fonts only */