From dc3fd348ac7d0f1baaca908dce2cc184eec884db Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 10 Nov 2009 10:31:15 +0000 Subject: towards TL2010: texk/ttf2pk git-svn-id: svn://tug.org/texlive/trunk@15974 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/ttf2pk/ttflib.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/ttf2pk/ttflib.c') diff --git a/Build/source/texk/ttf2pk/ttflib.c b/Build/source/texk/ttf2pk/ttflib.c index 16da9f43d66..cce978fe843 100644 --- a/Build/source/texk/ttf2pk/ttflib.c +++ b/Build/source/texk/ttf2pk/ttflib.c @@ -554,7 +554,7 @@ TTFget_first_glyphs(Font *fnt, long *array) { unsigned int i, j, Num; unsigned int index_array[257]; /* we ignore glyph index 0 */ - char *n; + const char *n; encoding *e = (encoding *)mymalloc(sizeof (encoding)); @@ -577,8 +577,11 @@ TTFget_first_glyphs(Font *fnt, long *array) if (Num <= 256) index_array[Num] = 1; - if (fnt->PSnames) - (void)TT_Get_PS_Name(face, Num, &n); + if (fnt->PSnames) { + char *tn; + (void)TT_Get_PS_Name(face, Num, &tn); + n = tn; + } else n = code_to_adobename(i); if (strcmp(n, ".notdef") == 0) @@ -680,7 +683,7 @@ TTFget_subfont(Font *fnt, long *array) long -TTFsearch_PS_name(char *name) +TTFsearch_PS_name(const char *name) { unsigned int i; char *n; -- cgit v1.2.3