lotus

previous page: 43 How do I write greek with Other typesetting systems
  
page up: Greece FAQ
  
next page: 45 Backgammon servers in Greece

44 Greek fonts into X Windows




Description

This article is from the Greece FAQ, by Nikolaos (Nick) C. Fotis, nfotis@theseas.ntua.gr with numerous contributions by others.

44 Greek fonts into X Windows


From: phdye+@cs.cmu.edu (Philip Dye)
Newsgroups: comp.graphics,brown.graphics
Subject: Re: Is there a way to get Greek fonts into ``idraw''?

---
>Does anyone know how Greek characters can be brought into idraw?
>I am trying to draw figures for a paper and am frustrated by
>the lack of support for using Greek letters in the figures in
>the program idraw.
> -Alan Arehart
> aba@lems.brown.edu

Idraw (like all x applications) uses the 'X Logical Font Description' for
specification of screen fonts. Using this specification one includes enough
information for the X server to locate a font. To get a list of the
available fonts from a given server use the 'xlsfont' command. So to
determine a specification for the Adobe Symbol one might use the following:

  % xlsfonts | grep -i symbol
  
  -adobe-symbol-medium-r-normal--10-100-75-75-p-61-adobe-fontspecific
  -adobe-symbol-medium-r-normal--11-80-100-100-p-61-adobe-fontspecific
  -adobe-symbol-medium-r-normal--12-120-75-75-p-74-adobe-fontspecific
  -adobe-symbol-medium-r-normal--14-100-100-100-p-85-adobe-fontspecific
  -adobe-symbol-medium-r-normal--14-140-75-75-p-85-adobe-fontspecific
  -adobe-symbol-medium-r-normal--17-120-100-100-p-95-adobe-fontspecific
  -adobe-symbol-medium-r-normal--18-180-75-75-p-107-adobe-fontspecific
  -adobe-symbol-medium-r-normal--20-140-100-100-p-107-adobe-fontspecific
  -adobe-symbol-medium-r-normal--24-240-75-75-p-142-adobe-fontspecific
  -adobe-symbol-medium-r-normal--25-180-100-100-p-142-adobe-fontspecific
  -adobe-symbol-medium-r-normal--34-240-100-100-p-191-adobe-fontspecific
  -adobe-symbol-medium-r-normal--8-80-75-75-p-51-adobe-fontspecific

Each of the above specifies a specific X11 screen font. As much of the
information is common, a simpler specification will still result in precise
match. For example, '*-symbol-medium-*-240-*' uniquely identifies a font.
If the given pattern does not uniquely identify a font, the first available
font, as listed by the xlsfonts program, is used.

In addition, idraw requires that one specify a postscript font and point
size to associate with the screen font.

Adding the following to your X11 defaults (or resources) will enable for
symbol font items in idraw.

idraw*font12:         *-symbol-medium-r-*-100-*      Symbol             10
idraw*font13:         *-symbol-medium-r-*-120-*      Symbol             12
idraw*font14:         *-symbol-medium-r-*-140-*      Symbol             14
idraw*font15:         *-symbol-medium-r-*-240-*      Symbol             24

From: pnevmati@milhouse.cs.wisc.edu (Dionisios N. Pnevmatikatos)
-----------------------------------

You can get the fonts and a xterm resources file from
bashan.cs.wisc.edu using anonymous ftp.

The relevant files are in the /pub/hellenes/X11.greek directory and are called:

Gterm.rsrc and greekXfonts.shar

 

Continue to:













TOP
previous page: 43 How do I write greek with Other typesetting systems
  
page up: Greece FAQ
  
next page: 45 Backgammon servers in Greece