From 415f06c694c7336e71d118955926bdc49439db06 Mon Sep 17 00:00:00 2001 From: Jjgod Jiang Date: Tue, 28 Apr 2015 17:33:30 +0000 Subject: Fix TTC support for Type 1 Composite and Type 0 fonts Fonts like Kohinoor Devanagari Light and HanziPen TC should work now. git-svn-id: svn://tug.org/texlive/trunk@37097 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfm-x/ChangeLog | 4 ++++ Build/source/texk/dvipdfm-x/cidtype0.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 2daed04ff11..ef7308c474b 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,7 @@ +2015-04-27 Jiang Jiang + + * cidtype0.c: Fix TTC support for Type 1 Composite and Type 0 fonts. + 2015-04-27 Jiang Jiang * dpxfile.c: Ignore empty file in filetype checking. diff --git a/Build/source/texk/dvipdfm-x/cidtype0.c b/Build/source/texk/dvipdfm-x/cidtype0.c index f7e6b441a40..b4e19a7f845 100644 --- a/Build/source/texk/dvipdfm-x/cidtype0.c +++ b/Build/source/texk/dvipdfm-x/cidtype0.c @@ -529,7 +529,7 @@ CIDFont_type0_dofont (CIDFont *font) if (offset == 0) ERROR("Not a CFF/OpenType font (2)?"); - cffont = cff_open(fp, offset, font->options->index); + cffont = cff_open(fp, offset, 0); if (!cffont) ERROR("Could not open CFF font."); if (!(cffont->flag & FONTTYPE_CIDFONT)) @@ -755,7 +755,7 @@ CIDFont_type0_open (CIDFont *font, const char *name, return -1; } - cffont = cff_open(sfont->stream, offset, opt->index); + cffont = cff_open(sfont->stream, offset, 0); if (!cffont) { ERROR("Cannot read CFF font data"); } @@ -934,7 +934,7 @@ CIDFont_type0_t1cdofont (CIDFont *font) if (offset == 0) ERROR("Not a CFF/OpenType font (6)?"); - cffont = cff_open(fp, offset, font->options->index); + cffont = cff_open(fp, offset, 0); if (!cffont) ERROR("Could not open CFF font."); if (cffont->flag & FONTTYPE_CIDFONT) @@ -1190,7 +1190,7 @@ CIDFont_type0_t1copen (CIDFont *font, const char *name, return -1; } - cffont = cff_open(fp, offset, opt->index); + cffont = cff_open(fp, offset, 0); if (!cffont) { ERROR("Cannot read CFF font data"); } -- cgit v1.2.3