[gs-devel] ArabicTransparent and ArabicTransparent-Bold Fonts

Levi skankwilsonite at gmail.com
Wed Oct 14 20:07:28 PDT 2009


One thing to note is when I was trying to do this before this thread,
I never have had a "Resource" folder or a "toolbin" folder in my
gs8.63 directory.  I installed ghostscript using the EXE installer and
it must not set those up.  However, I have since downloaded the ZIP of
gs and extracted those folders into my gs8.63 folder so I could run
the toolbin/genfontmap.ps .  Could this be part of my problem?  Is
this not setup correctly?

On Wed, Oct 14, 2009 at 5:52 PM, Ray Johnston <Ray.Johnston at artifex.com> wrote:
> Levi,
>
> Please send the stdout/stderr from Ghostscript. I apologize if
> that is what you already sent, but it wasn't clear what command
> line was used for the error report sent previously.

Here is the command I ran to convert my PDF as well as the generated output:

C: >>gswin32c.exe -dPrinted -dBATCH -dPDFFitPage -dUseCropBox
-dNOPAUSE -dDITHERPPI=100 -sDEVICE=tiffg4 -r600x600
-sFONTPATH=C:/windows/fonts -sOutput
File="c:\temp\arabic1.tif" "C:\temp\arabic.pdf"

GPL Ghostscript 8.63 (2008-08-01)
Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
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:11/12(ro)(G)--
  --nostring
val--   CIDFontObject   --dict:7/7(L)--   --dict:7/7(L)--
Adobe-Identity   CIDFont   Adobe-Identity
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


Do I need to setup a resource path to point to the "Resource"
directory?  From the documentation it seems like it should
automatically pick it up.  I am running the gswin32 from a command
prompt from the bin directory.

>
> Also, please send the PDF file (so we can look at it).
>

Unfortunately I cannot send the PDF file that I'm working with due to
privacy restrictions.  I have however attached the "Properties" dialog
from FoxIt reader that lists the fonts it's trying to find.

> Lastly, please send the output from:
>
> gswin32c -q -dNODISPLAY -sFONTPATH=c:/windows/fonts toolbin/genfontmap.ps >
> generated_Fontmap
>
> This will show if Ghostscript finds your Arabic fonts and what
> the 'real' font name is in the .ttf
>

I've attached the output from this command, and it looks like it's
picking up the font names correctly.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generated_Fontmap
Type: application/octet-stream
Size: 33162 bytes
Desc: not available
Url : http://ghostscript.com/pipermail/gs-devel/attachments/20091015/80c222d9/generated_Fontmap.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdf_fonts.png
Type: image/png
Size: 12472 bytes
Desc: not available
Url : http://ghostscript.com/pipermail/gs-devel/attachments/20091015/80c222d9/pdf_fonts.png


More information about the gs-devel mailing list