Summary: | fontconfig/CMap combination doesn't work | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Takanori MATSUURA <t.matsuu> |
Component: | General | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 8.64 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- |
Description
Takanori MATSUURA
2009-06-24 04:08:40 UTC
Please attach the font file so we can readily reproduce the problem. IPA fonts are available from http://ossipedia.ipa.go.jp/ipafont/ The page is provided in both Japanese and English in one page. If you push "Accept" button, Download page appears. This looks like a confusion between 'Fonts' and 'CIDFonts'. You can't compose a Font with a CMap, you can only compose a CIDFont with a CMap, in order to produce a CID-Keyed instance. In general the PostScript programmer is responsible for composing the CIDFont and CMap to produce the CID-Keyed instance. However, if you request a font which looks like a CIDFont + CMap combination, Ghostscript will try to find a CIDFont with a name matching the initial of the instance name, and a CMap with a name matching the terminal part of the instance name. If GS finds both it will compose the CIDFont and CMap for you, automatically creating the CID-Keyed instance. So, if you try to find IPAGothic-UniJIS-UTF8-H Ghostscript will first look for an existing font of that name. If it can't find one it will look for a CMap called UniJIS-UTF8-H and a CIDFont called IPAGothic. If it finds both then it will create a CIDKeyed instance. Failing that it falls back to Courier. Your IPAGothic font is not a CIDFont, it is an OpenType font (possibly with PostScript outlines). If you want to use this as a CIDFont, then you must define it as such. For a PostScript CIDFont all that is required is to create a directory under gs/Resource called CIDFont and place the file there. For a TrueType (or OpenType) font this is not sufficient. In the case of TrueType GhostScript needs more information regarding the Ordering and Registry of the CIDFont it is trying to emulate with the TrueType font. This information is supplied in the cidfmap file in gs/Resource/Init. To use these fonts as CIDFonts you must edit that file and add the fonts there. See gs/doc/Use.htm Section 8.4 CIDFont substitution for more information on using cidfmap and substituting TrueType or CIDFonts. |