How can I invoke Arabic fonts under ghostscript postscript programs

E

ehab

I want to show arabic string in a postscript file How can I do it .
What should be done to see the writing in Arabic .
I need to replace the strings with Arabic constants

My progrma is like this :
%-----------Define variables-------------
/MainFont
/Helvetica-Bold findfont 20 scalefont def
/SloganFont
/Helvetica-Oblique findfont 20 scalefont def
/OwnerFont
/Helvetica findfont 10 scalefont def
/header
/Helvetica-Bold findfont 20 scalefont def

/constant
%------------
{
0.8 setgray 25 800 moveto MainFont setfont (String 1) show
0 setgray 25 780 moveto SloganFont setfont (String 2) show
25 760 moveto OwnerFont setfont
(String 3-String 3-String 3) show
250 720 moveto header setfont (Header) show } def
/BOX
%------------
{ newpath
50 700 moveto
500 0 rlineto
0 -500 rlineto
-500 0 rlineto
closepath
..9 setlinewidth
stroke } def
%mainprogam
constant
BOX %do a sqaure
showpage
 
A

Aandi Inston

I want to show arabic string in a postscript file How can I do it .
What should be done to see the writing in Arabic .
I need to replace the strings with Arabic constants

You need to do more than that. The fonts Helvetica and its family
contain only ISOLatin1 Encoding, that is the Western characters. So
you first have to find Arabic PostScript fonts. These would then have
to be embedded into your PostScript file in PFA format. Then the
strings you use will depend on the encodings of the font you use.
 
E

ehab

Is the font fomrta PFA format embeded inside Ghostscript(under windows) ?
if No how can I download arqabic fonts ?
 
A

Aandi Inston

how can I download arabic fonts ?

Try a web search, if you don't have any already. If this is an
application you intend to distribute, check the font licensing
carefully, as you may have to pay for each copy. If you find a site
with many "free" fonts check carefully that they have the rights to
the fonts - it is better to avoid problems later.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top