Fix format strings in T42_download_header() and T42_download_glyph().
This commit is contained in:
parent
39f604b04f
commit
149bb9e625
|
@ -158,7 +158,7 @@ TYPE42 *T42_download_header(PSDRV_PDEVICE *physDev, LPOUTLINETEXTMETRICA potm,
|
||||||
const char storage[] ="]\nhavetype42gdir{pop}{{string} forall}ifelse\n";
|
const char storage[] ="]\nhavetype42gdir{pop}{{string} forall}ifelse\n";
|
||||||
const char end[] = "] def\n"
|
const char end[] = "] def\n"
|
||||||
"havetype42gdir{/GlyphDirectory 256 dict def\n"
|
"havetype42gdir{/GlyphDirectory 256 dict def\n"
|
||||||
" sfnts 0 get dup %d (x) putinterval %d (x) putinterval}if\n"
|
" sfnts 0 get dup %ld (x) putinterval %ld (x) putinterval}if\n"
|
||||||
"currentdict end dup /FontName get exch definefont pop\n";
|
"currentdict end dup /FontName get exch definefont pop\n";
|
||||||
|
|
||||||
|
|
||||||
|
@ -287,12 +287,12 @@ BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index,
|
||||||
const char glyph_def[] =
|
const char glyph_def[] =
|
||||||
"/%s findfont exch 1 index\n"
|
"/%s findfont exch 1 index\n"
|
||||||
"havetype42gdir\n"
|
"havetype42gdir\n"
|
||||||
"{/GlyphDirectory get begin %d exch def end}\n"
|
"{/GlyphDirectory get begin %ld exch def end}\n"
|
||||||
"{/sfnts get 4 index get 3 index 2 index putinterval pop}\n"
|
"{/sfnts get 4 index get 3 index 2 index putinterval pop}\n"
|
||||||
"ifelse\n"
|
"ifelse\n"
|
||||||
"/CharStrings get\n"
|
"/CharStrings get\n"
|
||||||
"begin\n"
|
"begin\n"
|
||||||
" /%s %d def\n"
|
" /%s %ld def\n"
|
||||||
"end\n"
|
"end\n"
|
||||||
"pop pop\n";
|
"pop pop\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue