Other View Settings
viewFont
slot. Several fonts are built into the system ROM. You can use them by specifying either a font frame or an integer specifying a font. TABLE 5.1 contains a listing of font frames available in ROM.
When you specify a font with an integer, some of the bits specify the family, some the face, and some the size. You usually use one of the following constants for the family and size: userFont9
, userFont10
, userFont12
, userFont18
, simpleFont9
, simpleFont10
, simpleFont12
, simpleFont18
, fancyFont9
, fancyFont10
, fancyFont12
, fancyFont18
, editFont10
, editFont12
, or editFont18.
Then, you add a constant for the style: tsPlain
(whose value is 0
), tsBold
, tsItalic
, tsUnderline
, tsOutline
, tsSuperScript
, or tsSubScript
.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996