[gs-devel] ArabicTransparent and ArabicTransparent-Bold Fonts
skankwilsonite at gmail.com
Thu Oct 15 07:05:55 PDT 2009
> I can only use the PDF file you sent as a test and that only references one
> of the fonts, ArabicTransparent. However, if I add this to my cidfmap in
> /ArabicTransparent << /CSI [(Identity) 0] /Path (c:/temp/artro.ttf)
> /SubfontID 0 /FileType /TrueType >> ;
> and then invoke GS using:
> gs -I/gs/Resource/Init;/gs/Resource arabic.pdf
I apologize if I am being obtuse, but on my system I do not know how
to get this to run like you did. First off, I don't have a gs, but
gswin32 which I'm guessing is not a big deal, but most importantly I
don't have an Init folder in my Resource folder in c:\program
files\gs\gs8.63\bin. This is why I am wondering if my installation or
something is not setup correctly?
However, when I do run gswin32.exe c:\temp\arabic.pdf it loads the pdf
if I use (Unicode) 1 but the text is still wrong...but when I modify
cidfmap to be what have above (Identity) 0, it does not work at all
C: >>gswin32c.exe -dPrinted -dBATCH -dPDFFitPage -dUseCropBox
-dNOPAUSE -dDITHERPPI=100 -sDEVICE=tiffg4 -r72x72
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.
Loading a TT font from c:/windows/fonts/artro.ttf to emulate a CID
font ArabicTransparent ... Done.
Can't build /Identity.Unicode /CIDDecoding resource. See gs_ciddc.ps .
Error: /undefinedresource in findresource
Since that displays, does that mean you can do my original command to
convert it to a ccitt4 tiff file and it works too?
> The resulting file appears to be OK. At least, it contains Arabic text,
> looks like 'Nastaliq' style cursive script, but has word spaces which I
> thought was undesirable, but then I'm not an Arabic speaker (also the
> resolution I'm using is rather low). Perhaps the spacing of the glyphs is
I may be able to send you the original document, but I need to clear that first.
> NB I also needed to add this font to my fontmap.GS file, but from your
> previous email this seems to have been done for you at install time, so if
> you use the example above, and duplicate that line, with appropriate
> substitutions, for the ArabicTransparent-Bold font, then the file should
> PS the lack of a ToUnicode CMap in the original PDF file will prevent
> cut+paste from the file working correctly.
More information about the gs-devel