Apple Newton Utilities Betriebsanweisung Seite 313

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 942
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 312
CHAPTER 8
Text and Ink Input and Display
Using Text 8-21
The integers in Table 8-5 are derived by packing font family, face, and size
information into a single integer value. Each NewtonScript integer is 30 bits in
length. In packed font specications, the lower 10 bits hold the font family, the
middle 10 bits hold the font size, and the upper 10 bits hold the font style.
These three parts added together specify a single font in one integer value. You can
use the constants listed in Table 8-6 at compile time to specify all of the needed infor-
mation. To do this, add one constant from each category together to yield a complete
font specication. At run time, of course, you’ll need to use the integer values.
editFont10 {family:'handwriting,
face:0, size:10}
10243
editFont12 {family:'handwriting,
face:0, size:12}
12291
editFont18 {family:'handwriting,
face:0, size:18}
18435
Table 8-6 Font packing constants
Constant Value Description
Font Family
(none dened) 0 Identies the System font (Espy)
tsFancy
1 Identies the New York font
tsSimple
2 Identies the Geneva font
tsHWFont
3 Identies the Casual (Handwriting)
font
Font Size
tsSize(pointSize)
pointSize
<< 10 Specify the point size of the font in
pointSize
Font Face
tsPlain
0Normal font
tsBold
1048576 Bold font
continued
Table 8-5 Built-in font constants (continued)
Constant Font frame Integer value
Seitenansicht 312
1 2 ... 308 309 310 311 312 313 314 315 316 317 318 ... 941 942

Kommentare zu diesen Handbüchern

Keine Kommentare