mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 17:43:44 +00:00
wineps.drv: When we're using a GlyphDirectory we should clear the offsets and lengths of the loca and glyf tables in addition to changing their names.
Should fix printing on Mac based cups servers.
This commit is contained in:
parent
44f663e8a4
commit
9a2c4f7114
1 changed files with 4 additions and 1 deletions
|
@ -161,7 +161,10 @@ TYPE42 *T42_download_header(PSDRV_PDEVICE *physDev, char *ps_name,
|
|||
static const char storage[] ="]\nhavetype42gdir{pop}{{string} forall}ifelse\n";
|
||||
static const char end[] = "] def\n"
|
||||
"havetype42gdir{/GlyphDirectory 256 dict def\n"
|
||||
" sfnts 0 get dup %d (locx) putinterval %d (glfx) putinterval}if\n"
|
||||
" sfnts 0 get dup\n"
|
||||
" %d <6c6f6378000000000000000000000000> putinterval\n" /* replace loca entry with dummy locx */
|
||||
" %d <676c6678000000000000000000000000> putinterval\n" /* replace glyf entry with dummy glfx */
|
||||
" }if\n"
|
||||
"currentdict end dup /FontName get exch definefont pop\n";
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue