Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Special characters. Postscript. fonts for GKS

36 views
Skip to first unread message

Lars Voigt

unread,
Nov 20, 2002, 8:26:26 AM11/20/02
to
Hi there


I am using Fortran 77 and GKS for my applications running in VMS.
I export my files in postscript using IWSTYPE=61

I would like to chnage the standard font to a font more similar to
Times-Roman. I use GKS_SET_FONTPREC to change the font.

The problem is that when I change the font, the danish letters æ,ø,å
is no longer printed in postscript. (they still appear on the screen
if I use IWSTYPE=16). Do I need some special postscript font definition
files ??


I really hope that someone can help meon this one!!

med venlig hilsen
Lars

Christoph Gartmann

unread,
Nov 20, 2002, 11:55:08 AM11/20/02
to
In article <e33ef366.0211...@posting.google.com>, l...@business.tele.dk (Lars Voigt) writes:
>I am using Fortran 77 and GKS for my applications running in VMS.
>I export my files in postscript using IWSTYPE=61
>
>I would like to chnage the standard font to a font more similar to
>Times-Roman. I use GKS_SET_FONTPREC to change the font.
>
>The problem is that when I change the font, the danish letters ę,ų,å
>is no longer printed in postscript. (they still appear on the screen
>if I use IWSTYPE=16). Do I need some special postscript font definition
>files ??

Not all fonts contain all characters. So it might be that your font simply
doesn't include any definitions for your Danish characters.

>med venlig hilsen

Vaer so god
Christoph Gartmann

-- --------------------------------------------------------------------+
| Max-Planck-Institut fuer Phone : +49-761-5108-464 Fax: -452 |
| Immunbiologie |
| Postfach 1169 Internet: gart...@immunbio.mpg.de |
| D-79011 Freiburg, Germany |
+--------- http://www.immunbio.mpg.de/home/english/menue.html ---------+

JF Mezei

unread,
Nov 20, 2002, 2:48:46 PM11/20/02
to
Lars Voigt wrote:
> The problem is that when I change the font, the danish letters æ,ø,å
> is no longer printed in postscript. (they still appear on the screen
> if I use IWSTYPE=16). Do I need some special postscript font definition
> files ??

Look into the postscript for the font handling section:

Here is an example of selecting Eurostyle:

/EurostyleT findfont dup length dict begin
{1 index /FID ne {def} {pop} {pop} ifelse forall
/Encoding ISOLatin1Encoding def
currentdict
end
/Eurostyle exch definefont pop

In other words, you duplicate the font, change the encoding to
ISOLatinEncoding and then define your font to point to that new dictionary.

I don't know about GKS specfically, but if it has template files, you could
change the font selection to ensure it has a full encoding to access the
characters not used by the USA.

Look for "Times-Roman" and "findfont" in the code if it is in one whole big
blob of unreadable junk. You can split lines any way you wish, except for
strings which are enclosed in (Hello World)

0 new messages