[bug-gs] load fonts

PIGEYRE Bastien bastien.pigeyre at infotel.com
Tue Mar 9 01:46:00 PST 2004


Hi,
I try to convert japan pdf into tiff file.
I managed to do this with gs8.14. but it's very slow because for each page ghostscript load 2 japan font (of 4MB each).

So I try to load the font at the start of ghoscript to avoid to reload the font each time.

my command is:
gs -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=dummy.tif -c save pop -f loadallfonts batch.ps -c quit

when I do loadallfonts the output is:
[Shell Output]
	...
	Loading GothicBBB-Medium font from c:/gs/fonts/msgothic.ttf... 2983048 1615817 601560 4282991 2 done.
	Using MS-Gothic font for GothicBBB-Medium.
	Loading NimbusMonL-Bold font from c:/gs/fonts/n022004l.pfb... 3120312 1761565 521656 4291828 2 done.
	..etc..
[/Shell Output]

It loads all the fonts from c:\gs\fonts directory.
So it loads my japan font MS-Gothic font for GothicBBB-Medium.

Then my batch.ps is:
[Code(batch.ps)]
    	/mysave save def
   	<</OutputFile (file1.tif)>>setpagedevice
    	(file1.pdf)run
    	mysave restore
[/Code(batch.ps)]

And the result is:

[Shell Output]
    	Processing pages 1 through 12.
    	Page 1
    	Loading a TT font from c:/gs/fonts/msmincho.ttc to emulate a CIDfont            
	Ryumin-Light ... Done.
    	Loading a TT font from c:/gs/fonts/msgothic.ttf to emulate a CIDfont
            GothicBBB-Medium ... Done.
    	>>showpage, press <return> to continue<<

[/Shell Output]


So it reloads the font:-(. 

but when I try this method with a non-japan pdf it works well the
fonts are not reloaded. 

If someone has an idea about this?

Thanks,

Bastien PIGEYRE




-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/bug-gs/attachments/20040309/1df1a475/attachment.html


More information about the bug-gs mailing list