beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 340

background image

C H A P T E R 8

Text and Ink Input and Display

8-48

Summary of Text

Font Attribute Functions and Methods

8

FontAscent(

fontSpec

)

FontDescent(

fontSpec

)

FontHeight(

fontSpec

)

FontLeading(

fontSpec

)

GetFontFace

(fontSpec)

GetFontFamilyNum

(fontSpec)

GetFontFamilySym

(fontSpec)

GetFontSize

(fontSpec)

MakeCompactFont

(family, size, face)

SetFontFace

(fontSpec, newFace)

SetFontFamily

(fontSpec, newFamily)

SetFontParms

(fontSpec, whichParms)

SetFontSize

(fontSpec, newSize)

Rich String Functions and Methods

8

DecodeRichString

(richString, defaultFontSpec)

view:

ExtractRangeAsRichString

(offset, length)

view:

GetRichString()

IsRichString

(testString)

MakeRichString

(text, styleArray)

StripInk

(

richString

,

replaceString

)

Functions and Methods for Accessing Ink in Views

8

GetInkAt

(para, index)

NextInkIndex

(para, index)

ParaContainsInk

(para)

PolyContainsInk

(poly)