[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

Font information for a screen comes from a number of different places.

SA_Font
    The application may specify the font to be used in a screen by
    providing the SA_Font tag with a TextAttr structure.  In this case,
    the font will be used by the screen and will be the default font for
    the RastPort of any window opening in the screen.

SA_SysFont, 0
    If the application requests the user's preferred monospace font, it
    is taken from GfxBase->DefaultFont.  Any window's RastPorts are also
    initialized to use this same font.

SA_SysFont, 1
    The screen font selected by the user from the Preferences font editor
    may be used for the screen by using the SA_SysFont tag.  This font,
    the "preferred screen font", may be proportional.  For compatibility
    reasons, if this font is specified for the screen, the window's
    RastPort will be initialized to GfxBase->DefaultFont (a
    non-proportional font).

To access information on an open screen's font, the application may
reference Screen.Font or DrawInfo.dri_Font.  These fonts are identical,
the DrawInfo structure simply provides an alternate method of accessing
the information.  Note that Screen.Font is a pointer to a TextAttr
structure and that DrawInfo.dri_Font is a pointer to a TextFont structure.
The application may use whichever form is best suited to its requirements.

It is illegal to change the screen's font after the screen is opened.
This means that the font specified in the Screen and DrawInfo structures
is guaranteed to remain open as long is the screen is open.

The menu bar, window titles, menu items, and the contents of a string
gadget all use the screen's font.  The font used for menu items can be
overridden in the menu item's IntuiText structure.  Under V36 and higher,
the font used in a string gadget can be overridden through the
StringExtend structure.  The font of the menu bar and window titles cannot
be overridden.

For more information on screen fonts, see the description of the SA_Font
and SA_SysFont tags in the "Screen Attributes" section above.