
CHAPTER 8
Text and Ink Input and Display
8-18 Using Text
The constants you can use in font specifications are shown in “Font Constants for
Packed Font Integer Specifications” (page 7-4) in Newton Programmer’s Reference.
The Font Frame 8
A font frame has the following format:
{family: familyName, face: faceNumber, size: pointSize}
For familyName, you can specify a symbol corresponding to one of the available
built-in fonts, which are shown in Table 8-3.
For
faceNumber, you can specify a combination of the values shown in Table 8-4:
Table 8-3 Font family symbols
Symbol Font Family
'espy
Espy (system) font
'geneva
Geneva font
'newYork
New York font
'handwriting
Casual (handwriting) font
Table 8-4 Font style (face) values
Constant Value Font face
kFaceNormal 0x000
Normal font
kFaceBold 0x001
Bold font
kFaceItalic 0x002
Italic font
kFaceUnderline 0x004
Underline font
kFaceOutline 0x008
Outline font
kFaceSuperScript 0x080
Superscript font
kFaceSubscript 0x100
Subscript font
Commentaires sur ces manuels