# [gs-devel] ArabicTransparent and ArabicTransparent-Bold Fonts

Levi skankwilsonite at gmail.com
Wed Oct 14 10:00:12 PDT 2009

```On Wed, Oct 14, 2009 at 12:43 PM, Ken Sharp <ken.sharp at artifex.com> wrote:
>
> 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 apologize, I forgot to mention that the fonts are NOT embedded in
the document.  They are copyrighted.  I have the fonts installed on my
system in C:\windows\fonts.
>
>
>
>>  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 was having trouble getting GS to use the fonts that I have.   I
added the following entry into my gs\gs8.63\lib\Fontmap.GS file (I
/ArabicTransparent-Bold (artrbdo.ttf) ;
/ArabicTransparent (artro.ttf) ;
After doing so, I get the following error / stack:

Processing pages 1 through 1.
Page 1
Substituting CID font resource/Adobe-Identity for /ArabicTransparent.
Error: /undefinedresource in findresource
Operand stack:
--nostringval--   --dict:8/17(L)--   G1   1   --dict:5/5(L)--
--dict:5/5(L)--   ArabicTransparent-Identity-H   --dict:10/12(ro)(G)--
--nostring
val--   CIDFontObject   --dict:7/7(L)--   --dict:7/7(L)--
Execution stack:
%interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval--   2   %stopped_push   --nostringval--
--nostringval--   --nostring
val--   false   1   %stopped_push   1905   1   3   %oparray_pop   1904
1   3   %oparray_pop   1888   1   3   %oparray_pop   --nostringval--
--nost
ringval--   2   1   1   --nostringval--   %for_pos_int_continue
--nostringval--   --nostringval--   --nostringval--   --nostringval--
%array_conti
nue   --nostringval--   false   1   %stopped_push   --nostringval--
%loop_continue   --nostringval--   --nostringval--   --nostringval--
--nostrin
gval--   --nostringval--   --nostringval--   %array_continue
--nostringval--   --nostringval--   --nostringval--   --nostringval--
--nostringval--
%loop_continue   --nostringval--   1856   14   10   %oparray_pop
findresource   %errorexec_pop   --nostringval--   --nostringval--
--nostringva
l--
Dictionary stack:
--dict:1165/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--
--dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:275/300(ro)(G)--
--dict
:21/25(L)--   --dict:4/6(L)--   --dict:22/40(L)--   --dict:10/13(L)--
--dict:20/26(ro)(G)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.63: Unrecoverable error, exit code 1

>
> 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.
>

I should also mention that in my gs folder I do not have a
/Resource/Init directory.  In fact, I did not even have a Resource
directory, but I created one by copying the Resource directory that