C H A P T E R 8
Text and Ink Input and Display
Note that the "Casual" font uses the symbol
for its font family.
You can use the
function at runtime to create a packed
integer value from a specification of the font family, font size, and font face. You
can only specify ROM fonts with the packed integer format. Here is an example:
fontValue := MakeCompactFont('tsSimple, 12, tsItalic)
If the font specified by the three parameters does not belong to a ROM font family,
returns a font frame instead.
function is described in "MakeCompactFont"
(page 7-28) in Newton Programmer's Reference.
Rich strings store text strings and ink in a single string. If you application supports
user-input text or ink, you can use rich strings to represent all user data. You can
convert between the text and styles pairs in paragraph views and rich strings. Text
and styles pair are described in "Text and Styles" (page 8-25).
Rich strings are especially useful for storing text with embedded ink in a soup. You
can use the rich string functions, described in "Rich String Functions" (page 8-24),
to work with rich strings.
The system software automatically handles rich strings properly, including their
use in performing the following operations:
sorting and indexing
concatenation with standard functions such as
described in "Utility Functions" (page 26-1)
Underlined normal font
Font packing constants (continued)