diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:31:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:31:15 +0000 |
commit | dc3fd348ac7d0f1baaca908dce2cc184eec884db (patch) | |
tree | 5ae1c5085e514c2b915bf133f190fa0667a13e6c /Build/source/texk/ttf2pk/ttflib.c | |
parent | 74406b49ab73cdf1b4225ec21a60616110d06c2e (diff) |
towards TL2010: texk/ttf2pk
git-svn-id: svn://tug.org/texlive/trunk@15974 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttf2pk/ttflib.c')
-rw-r--r-- | Build/source/texk/ttf2pk/ttflib.c | 11 |
1 files changed, 7 insertions, 4 deletions
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; |