[gs-devel] ArabicTransparent and ArabicTransparent-Bold
Fonts
Ken Sharp
ken.sharp at artifex.com
Wed Oct 14 09:43:36 PDT 2009
At 12:16 14/10/2009 -0400, Levi wrote:
>The PDF contains ArabicTransparent and ArabicTransparent-Bold fonts (the
>PDF also lists for both of those the corresponding xxx-Identity-H fonts,
>but I'm guessing that just means it's a CID?).
If the PDF file contains the fonts, then you don't need to add them to GS,
it will use the ones in the PDF file. Containing both is not really ideal,
it (probably, would need to see the file to be sure) means that you have a
regular TrueType font and a CIDFont with TrueType outlines, with the same
name (maybe, they might be subset).
> I really don't have a clue what I'm doing, but what I'm trying to do
> (if this is the proper approach) is to get ghostscript to emulate the
> TrueType fonts that I have.
I think you mean get GS to use the fonts you have, not emulate.
> I have made the following entries into the cidfmap file:
>
>/ArabicTransparent-Bold << /FileType /TrueType /Path
>(c:/windows/fonts/artrbdo.ttf) /CSI [(CNS1) 4] >> ;
>/ArabicTransparent << /FileType /TrueType /Path
>(c:/windows/fonts/artro.ttf) /CSI [(CNS1) 4] >> ;
>
>Before adding those entries, I would get the following error:
>
>Substituting CID font resource/Adobe-Identity for /ArabicTransparent.
>Error: /undefinedresource in findresource
Well, that tells you that at least one of the fonts, ArabicTransparent, is
not in the PDF file. It isn't complaining about
ArabicTransparent-Identity-H so its not apparently missing the CIDFont (or
perhaps the document simply isn't using the CIDFont).
>After adding those entries, the TIF is generated, but the fonts appear as
>blocks which means either you can't do it this way or I am using the wrong
>parameters for /CIS. Any help would be tremendously appreciated.
If you've quoted the text properly, then its not a CIDFont which is
missing, its a straight-forward TrueType font. Looks like GS is using the
CIDFont as a replacement for the regular TrueType font, which will probably
use 2 bytes per glyph, and quite likely won't produce a working glyph. This
may mean you get the /.notdef instead, this is usually a hollow square but
might be anything.
You probably need to add the fonts as Fonts, not CIDFonts, at a guess. This
will mean editing fontmap.GS (not cidfmap) in your gs/Resource/Init directory.
Ken
More information about the gs-devel
mailing list