::tycho::Uninstantiable
-
Related constructs -
Source File -
Contents:
public procs
Unfortunately, fonts are a major weak point in the X window system,
since there is only one font that is guaranteed to be installed on
all systems: "fixed". This font is the fallback font of the
getFont
procedure, which always returns a valid font.
size
{proposed {}} {shift 0}
checkXFont
font
getFont
family {size 12} {style roman} {shift 0}
All arguments are case-insensitive.
In addition to the real font families, there is the psuedo-family "Screen," which is mapped to constant-width X screen fonts. Also, the font family can be one of "Serif," "Sans-serif," or "Constant-width," in which case the preferred font of the specified type is chosen.
If the font request is not found immediately, this procedure attempts to find a reasonable alternative:
family
{type {}} {family {}} args
Warning: Use of this procedure with more than one argument is not for casual use. The facility is provided to allow customization of the font choices for particular Tycho installations, not to allow users (for example) to arbitrarily mess with the font setup.
A special value of the family argument is recognized: if "replace" then the list of fonts that particular type is set to following arguments Note again that this is only for customization to a particular installation.
getXFont
family {size 12} {weight medium} {style r} {shift 0}
Warning: This procedure is available publicly only because
not all files have been updated to use getFont
. Do not
call it directly.