2.9.14 TextCFException

Referenced by: TextCFExceptionAtom, TextCFRun, TextMasterStyleLevel

A structure that specifies character-level style and formatting, font information, coloring and positioning.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

masks

fontStyle (optional)

fontRef (optional)

oldEAFontRef (optional)

ansiFontRef (optional)

symbolFontRef (optional)

fontSize (optional)

color (optional)

position (optional)

masks (4 bytes): A CFMasks structure that specifies whether certain fields in this TextCFException record exist and are valid. Sub-fields are further specified in the following table.

Field

Meaning

masks.pp10ext

MUST be zero.

masks.newEATypeface

MUST be zero.

masks.csTypeface

MUST be zero.

masks.pp11ext

MUST be zero.

fontStyle (2 bytes): An optional CFStyle structure that specifies the character-level style. It MUST exist if and only if one or more of the following fields are TRUE: masks.bold, masks.italic, masks.underline, masks.shadow, masks.fehint, masks.kumi, masks.emboss, or masks.fHasStyle.

fontRef (2 bytes): An optional FontIndexRef that specifies the font. It MUST exist if and only if masks.typeface is TRUE.

oldEAFontRef (2 bytes): An optional FontIndexRef that specifies an East Asian font. It MUST exist if and only if masks.oldEATypeface is TRUE.

ansiFontRef (2 bytes): An optional FontIndexRef that specifies an ANSI font. It MUST exist if and only if masks.ansiTypeface is TRUE.

symbolFontRef (2 bytes): An optional FontIndexRef that specifies a symbol font. It MUST exist if and only if masks.symbolTypeface is TRUE.

fontSize (2 bytes): An optional signed integer that specifies the size, in points, of the font. It MUST be greater than or equal to 1 and less than or equal to 4000. It MUST exist if and only if masks.size is TRUE.

color (4 bytes): An optional ColorIndexStruct structure that specifies the color of the text. It MUST exist if and only if masks.color is TRUE.

position (2 bytes): An optional signed integer that specifies the baseline position of a text run relative to the baseline of the text line as a percentage of line height. It MUST be greater than or equal to -100 and less than or equal to 100. It MUST exist if and only if masks.position is TRUE.