Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create kanji TIFFs?



ulrike@example.com writes:

> Marc Christensen wrote:
> > 
> > The problem is that there is no device called 'tiff'.  Doing 'ghostscript
> > --help' reveils there are several devices - some of which are tiffcrle
> > tiffg3 tiffg32d tiffg4 tifflzw tiffpack tiff12nc tiff24nc.
> > 
> > Pick your poison...
> 
> Which kind of poison doesn't matter? I successfully produced a file, however xv
> spits out a few error messages, one of it says:
> 
> 	Warning, unknown filed with tag 327 (0x147) ignored
> 
> And then prints out a huge "C88E", whether I feed it "(C884)" or "<43383845>". 
> 
> But maybe the problem is that I don't seem to have the right font? At least
> "locate Ryumin" did not lead to any results.

Yes, it looks like you are missing Japanese fonts for you Ghostscript.

If your Distribution does not already ship a Ghostscript with Japanese
fonts, the in my experience easiest way to add Japanese fonts is
described here:

    http://www.cit.ics.saitama-u.ac.jp/~far/howto/gs.html

Should work for Ghostscript 5.50 and newer.

> Does this strategy in theory allow me to control the size of the kanji?

Yes. Look at Stephen's example:

    %! PS-Adobe-2.0
    144 /Ryumin-Light-H findfont exch scalefont setfont
    100 100 moveto
    (C88E) show showpage

The "144" is the size. The good thing of the PostScript strategy is
that you can have really kanji rendered nicely even in very huge
sizes, where bitmap fonts scaled to that size would look terribly
ugly.

-- 
Mike Fabian   <mfabian@example.com>


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links