Putting CJK text into PostScript file
Our application, as one of several export options, generates PostScript files. We recently added support for UNICODE text to the application - all internal text is utf16. I am having trouble exporting asian (CJK) fonts correctly. Before the switch to UNICODE we supported ShiftJIS for Japanese. I know that PS does not directly support UNICODE. So, my question is, what is the best way to proceed given the facts that I have UNICODE text and I must generate a correct PS file which will display that text?
To my pea-sized brain, it looks like there are two possible paths...
1. Convert the utf16 to ShiftJIS (or whatever code page is required) and export as before? This seems doable, but strikes me as a hack since I would need to look at each code point and figure out which code page it is related to.
2. Re-encode the font? But how? I've looked at documentation for CID-keyed fonts and some sample code for re-encoding, but I admit that I have not yet had an aha! moment. I'm not even sure if I'm looking at the correct stuff.
Also, do we need to embed the font(s)? (I realize that CJK fonts can be large, but file size is not a major consideration.)
Thanks for any help.
