summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/font/writecff.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/writecff.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/font/writecff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/writecff.c b/Build/source/texk/web2c/luatexdir/font/writecff.c
index e6570e070c6..2d0b16b085d 100644
--- a/Build/source/texk/web2c/luatexdir/font/writecff.c
+++ b/Build/source/texk/web2c/luatexdir/font/writecff.c
@@ -2830,7 +2830,7 @@ void write_cff(PDF pdf, cff_font * cffont, fd_entry * fd)
The |CIDSet| is a table of bits indexed by cid, bytes with high order bit
first, each (set) bit is a (present) CID.
*/
- if (1) {
+ if ((! pdf->omit_cidset) && (pdf->major_version == 1)) {
int cid;
cidset = pdf_create_obj(pdf, obj_type_others, 0);
if (cidset != 0) {
@@ -2884,7 +2884,7 @@ void write_cff(PDF pdf, cff_font * cffont, fd_entry * fd)
cff_add_string(cffont, "Identity");
if (cffont->header_major == 2) {
/*tex A crash. */
- } else {
+ } else if (cffont->private && (cffont->private)[0]) {
cff_dict_update(cffont->private[0], cffont);
}
cff_update_string(cffont);
@@ -2969,7 +2969,7 @@ void write_cid_cff(PDF pdf, cff_font * cffont, fd_entry * fd)
The |CIDSet| table is a table of bits indexed by cid, bytes with high
order bit first, each (set) bit is a (present) CID.
*/
- if (1) {
+ if ((! pdf->omit_cidset) && (pdf->major_version == 1)) {
cidset = pdf_create_obj(pdf, obj_type_others, 0);
if (cidset != 0) {
size_t l = (last_cid / 8) + 1;