summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk/tfmaux.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-09-18 17:55:36 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-09-18 17:55:36 +0000
commite3167f2329da4174fd1332e069788693de96b72a (patch)
tree39ca6dd621ecfbbec729afb0354cb1e023e903de /Build/source/texk/ttf2pk/tfmaux.c
parentcf6f2edfb33cb21fb49e4c182f43aab5e031f80a (diff)
ttf2pk: Adapt to W32TeX (from Akira)
Extend the test to cover vert feature from GSUB table git-svn-id: svn://tug.org/texlive/trunk@27715 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttf2pk/tfmaux.c')
-rw-r--r--Build/source/texk/ttf2pk/tfmaux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/ttf2pk/tfmaux.c b/Build/source/texk/ttf2pk/tfmaux.c
index 68e80a708bf..314c105e9fb 100644
--- a/Build/source/texk/ttf2pk/tfmaux.c
+++ b/Build/source/texk/ttf2pk/tfmaux.c
@@ -282,7 +282,6 @@ buildtfm(Font *fnt)
register int i, j;
register ttfinfo *ti;
int byte1, old_byte1, byte2;
- long cksum;
double Slant;
char buffer[256];
struct sf sf_array[256];
@@ -365,8 +364,8 @@ buildtfm(Font *fnt)
}
header = (long *)mymalloc(40000L);
- cksum = checksum(fnt->inencptrs);
- header[0] = cksum;
+ fnt->cksum = checksum(fnt->inencptrs);
+ header[0] = fnt->cksum;
header[1] = 0xA00000; /* 10pt design size */
(void)makebcpl(header + 2, fnt->codingscheme, 39);
@@ -509,7 +508,8 @@ buildtfm(Font *fnt)
old_byte1 = byte1;
nl++;
}
- ligkern[nl - 1] |= 0x80000000L;
+ if (nl > 0)
+ ligkern[nl - 1] |= 0x80000000L;
}
kerns = ligkern + nl;