diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-17 22:50:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-17 22:50:15 +0000 |
commit | e7dfe5ab98e759081fc73990ed6c1ac6910a105d (patch) | |
tree | 1635f79c86856a6aa57a45b8b952b651ef9fcba9 /Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge | |
parent | ae542350b1e3add10d4ee3d7b68f610132f31a50 (diff) |
dvisvgm 2.3.1 (patched)
git-svn-id: svn://tug.org/texlive/trunk@46352 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge')
3 files changed, 4 insertions, 14 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/macbinary.c b/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/macbinary.c index de63210774d..85df7c5971e 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/macbinary.c +++ b/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/macbinary.c @@ -90,7 +90,7 @@ /* is followed by the resource section (padded to a mult of 128 bytes) */ /* Crc code taken from: */ -/* http://www.ctan.org/tex-archive/tools/macutils/crc/ */ +/* http:// mirror.ctan.org/tools/macutils/crc */ /* MacBinary files use the same CRC that binhex does (in the MacBinary header) */ /* ******************************** Creation ******************************** */ diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/nowakowskittfinstr.c b/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/nowakowskittfinstr.c index 774f302d95b..e56cc7a0092 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/nowakowskittfinstr.c +++ b/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/nowakowskittfinstr.c @@ -382,8 +382,7 @@ static int GetBlueScale(SplineFont *sf) { char *str, *end; double bs; int result; - - if ( sf->private==NULL) + if ( sf->private==NULL || (str=PSDictHasEntry(sf->private,"BlueScale"))==NULL ) return 42; bs = strtod(str, &end); @@ -4383,11 +4382,9 @@ return( false ); static uint8 *FixDStemPoint ( InstrCt *ct,StemData *stem, int pt,int refpt,int firstedge,int cvt,BasePoint *fv ) { uint8 *instrs, *touched; - int ptcnt; DiagPointInfo *diagpts; diagpts = ct->diagpts; - ptcnt = ct->gd->realcnt; touched = ct->touched; instrs = ct->pt; @@ -4494,7 +4491,7 @@ return( instrs ); * line's starting point without special exceptions. */ static uint8 *FixDstem( InstrCt *ct, StemData *ds, BasePoint *fv ) { - int startnum, a1, a2, b1, b2, ptcnt, firstedge, cvt; + int startnum, a1, a2, b1, b2, firstedge, cvt; int x_ldup, y_ldup, x_edup, y_edup, dsc1, dsc2; PointData *v1, *v2; uint8 *touched; @@ -4503,7 +4500,6 @@ static uint8 *FixDstem( InstrCt *ct, StemData *ds, BasePoint *fv ) { if ( ds->ldone && ds->rdone ) return( ct->pt ); - ptcnt = ct->ptcnt; touched = ct->touched; dsc1 = DStemHasSnappableCorners( ct,ds,ds->keypts[0],ds->keypts[2] ); @@ -4590,12 +4586,10 @@ static uint8 *FixPointOnLine ( DiagPointInfo *diagpts,PointVector *line, uint8 *instrs, *touched; BasePoint newpv; - int ptcnt; int pushpts[4]; touched = ct->touched; instrs = ct->pt; - ptcnt = ct->ptcnt; newpv = GetVector( &line->pd1->base,&line->pd2->base,true ); @@ -4641,12 +4635,10 @@ static uint8 *InterpolateAlongDiag ( DiagPointInfo *diagpts,PointVector *line, uint8 *instrs, *touched; BasePoint newpv; - int ptcnt; int pushpts[3]; touched = ct->touched; instrs = ct->pt; - ptcnt = ct->ptcnt; if (diagpts[pd->ttfindex].count != 1 || touched[pd->ttfindex] & ( tf_x|tf_y ) || diagpts[pd->ttfindex].line[0].done > 1 ) @@ -4817,13 +4809,11 @@ static uint8 *TouchDStemPoints( InstrCt *ct,BasePoint *fv ) { int i, ptcnt, numx=0, numy=0, idx; int *tobefixedy, *tobefixedx; uint8 *instrs, *touched; - DiagPointInfo *diagpts; PointData *pd; touched = ct->touched; instrs = ct->pt; ptcnt = ct->gd->pcnt; - diagpts = ct->diagpts; tobefixedy = calloc( ptcnt,sizeof( int )); tobefixedx = calloc( ptcnt,sizeof( int )); diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/tmpfile2.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/tmpfile2.cpp index 704207b1927..ac5684fdb53 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/tmpfile2.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/tmpfile2.cpp @@ -3,7 +3,7 @@ * works on POSIX and Windows systems. * License: Revised BSD license used by FontForge * https://github.com/fontforge/fontforge/blob/master/LICENSE -* (C) 2017 Martin Gieseking <martin.gieseking@uos.de> */ +* (C) 2017-2018 Martin Gieseking <martin.gieseking@uos.de> */ #include <cstdio> #include <cstdlib> |