Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


Adding FONTS (incl. GREEK) to IDRAW

It is easy to extend the fonts in Idraw to include Greek symbols, or other
PostScript fonts.  The postscript "Symbol" font has greek letters in it,
and we have the Symbol font both on-line as an X font and installed on our
printers, so you can use it to get greek letters.

In order to do this, you have to define an X resource before starting up
idraw to tell idraw to add the Symbol font to the font menu, and to tell
it what PostScript font corresponds to the X font it will use to display
the font.  For example, if you put the following in your .Xresources file:

    Idraw.font12: -*-symbol-medium-r-*-*-*-100-* Symbol 10

then the menu would be expanded to include a 10-point symbol font at the
end.  Note, if you don't want to overwrite already-existing fonts
available to you in idraw, begin the numbering of these resources with 12,
e.g.: Idraw.font12, Idraw.font13, etc.  (See example below.)

The greek letters correspond (roughly) to the upper and lower case
alphabetical letters.  The "100" in the font name is the point size times
10.  We have on-line X fonts in sizes 80, 100, 120, 140, 180, and 240, so
those are the only sizes you can display; however, if you want to print a
font that is a different size from any of those, you can use one size to
display and another number when actually printing (the last number in the
resource line is the printing size).

Make sure that you do "xrdb -load ~/.Xresources" after adding this stuff
to your .Xresources file before running idraw.  For more information on
how X resources work, consult the "How to use X Resources" stock answer
under the XWINDOWS topic.

More examples of how you can add fonts might include the following:

    Idraw.font12:           *-courier-medium-r-*-120-* Courier 12
    Idraw.font13:           *-courier-bold-r-*-120-* Courier-Bold 12
    Idraw.font14:           *-courier-medium-o-*-120-* Courier-Oblique 12
    Idraw.font15:           *-courier-bold-o-*-120-* Courier-BoldOblique 12
    Idraw.font16:           *-times-medium-r-*-140-* Times-Roman 14
    Idraw.font17:           *-times-bold-r-*-140-* Times-Bold 14
    Idraw.font18:           *-times-medium-i-*-140-* Times-Italic 14
    Idraw.font19:           *-times-bold-i-*-140-* Times-BoldItalic 14

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.