Other View Settings

viewFont

You can specify the view's font in the 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.

Fonts available on the Newton MessagePad 130.
Font Frame Constant Font Frame
Font Family: Espy 
ROM_fontSystem9{family: 'espy, face: kFaceNormal, size: 9}
ROM_fontSystem9Bold{family: 'espy, face: kFaceBold, size: 9}
ROM_fontSystem9Underline{family: 'espy, face: kFaceUnderline, size: 9}
ROM_fontSystem10{family: 'espy, face: kFaceNormal, size: 10}
ROM_fontSystem10Bold{family: 'espy, face: kFaceBold, size: 10}
ROM_fontSystem10Underline{family: 'espy, face: kFaceUnderline, size: 10}
ROM_fontSystem12{family: 'espy, face: kFaceNormal, size: 12}
ROM_fontSystem12Bold{family: 'espy, face: kFaceBold, size: 12}
ROM_fontSystem12Underline{family: 'espy, face: kFaceUnderline, size: 12}
ROM_fontSystem14{family: 'espy, face: kFaceNormal, size: 14}
ROM_fontSystem14Bold{family: 'espy, face: kFaceBold, size: 14}
ROM_fontSystem14Underline{family: 'espy, face: kFaceUnderline, size: 14}
ROM_fontSystem18{family: 'espy, face: kFaceNormal, size: 18}
ROM_fontSystem18Bold{family: 'espy, face: kFaceBold, size: 18}
ROM_fontSystem18Underline{family: 'espy, face: kFaceUnderline, size: 18}
Font Family: Geneva 
simpleFont9{family: 'geneva, face: kFaceNormal, size: 9}
simpleFont10{family: 'geneva, face: kFaceNormal, size: 10}
simpleFont12{family: 'geneva, face: kFaceNormal, size: 12}
simpleFont18{family: 'geneva, face: kFaceNormal, size: 18}
Font Family: New York 
fancyFont9{family: 'newYork, face: kFaceNormal, size: 9}
fancyFont10{family: 'newYork, face: kFaceNormal, size: 10}
fancyFont12{family: 'newYork, face: kFaceNormal, size: 12}
fancyFont18{family: 'newYork, face: kFaceNormal, size: 18}
Font Family: Casual 
editFont10{family: 'handwriting, face: kFaceNormal, size: 10}
editFont12{family: 'handwriting, face: kFaceNormal, size: 12}
editFont18{family: 'handwriting, face: kFaceNormal, size: 18}


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996