TextFont
TextFont Select font for subsequent text drawing short fontNo ; 0=system font, 1=appl font, 2...255= others
drawing will use the specified font.
fontNo is a font number. The following Standard Fonts are available as system- defined constants:
systemFont 0 System default font; "Chicago
applFont 1 default application font; initially "Geneva
newYork 2
geneva 3
monaco 4
london 6
athens 7
sanFran 8
toronto 9
cairo 11
losAngeles 12
times 20 These are all
helvetica 21 designed for
courier 22 use on the
symbol 23 LaserWriter
mobile 24
GetFNum if you know the font's name, but not its number.
before InitWindows). This ensures that the Font Manager is properly initialized for text drawing.
The initial value for txFont is 0, specifying the system font, Chicago. You
can read the current value from the GrafPort structure: curFont = thePort->txFont;
The appearance of the text is also affected by the txFace, txSize, and txMode