OS/2, eCS & ArcaOS - Technical > Setup & Installation
Adding fonts to be used by Ghostscript
ivan:
I have a manual in PDF form that will not display the diagrams because they have a Japanese font as well as an English embedded in them.
Is it possible to add an available Japanese font (MsMincho.TTC) and map it to Shingo-medium? Alternately, does anyone have Shingo-medium as a true type font and where did you get it?
Alex Taylor:
This might work but I'm not 100% sure.
In the gs\gs-whatever\lib directory, copy the sample file FAPIcidfmap to cidfmap, then add some lines similar to the following at the end:
--- Code: ---/MS-Mincho << /FileType /TrueType /Path (C:/PSFONTS/msmincho.ttc) /SubfontID 0 /CSI [(Japan1) 3] >> ;
/MS-PMincho << /FileType /TrueType /Path (C:/PSFONTS/msmincho.ttc) /SubfontID 1 /CSI [(Japan1) 3] >> ;
--- End code ---
Obviously, change the file paths as appropriate. That should allow GS to map the font names 'MS-Mincho' and 'MS-PMincho' to the TTC file.
Then you might be able to add an alias for 'Shingo-medium' to 'MS-Mincho' in the file fontmap. I've never tried that, though.
A more brute-force approach in cidfmap might be possible as well:
--- Code: ---/Shingo-medium << /FileType /TrueType /Path (C:/PSFONTS/msmincho.ttc) /SubfontID 0 /CSI [(Japan1) 3] >> ;
--- End code ---
Again, I have tested none of this.
ivan:
Thanks Alex. I will give it a try when I get home tonight.
ivan:
Just a quick update. It almost works - by that I mean that the majority of the pages now display and show both the English and Japanese. The odd pages that don't have, I assume, some Japanese glifs that are not in the font I have.
Thanks Alex.
Alex Taylor:
Good to hear!
By the way, if you're not set on using Ghostscript, Lucide can also be configured to support Japanese font fallback. You just have to install the poppler-data addon pack in the Lucide directory: https://drive.google.com/file/d/0B_CmLQmhb3PzT3p2UDFLREJPVTg/edit?usp=sharing
Navigation
[0] Message Index
[#] Next page
Go to full version