Skip to content

cupertino-files / CharacterFormatting

Interface: CharacterFormatting

Defined in: src/tss/stylesheet.ts:53

Properties

backgroundColor?

optional backgroundColor?: Color

Defined in: src/tss/stylesheet.ts:62

Text highlight colour behind the glyphs.


baselineShift?

optional baselineShift?: number

Defined in: src/tss/stylesheet.ts:84


bold?

optional bold?: boolean

Defined in: src/tss/stylesheet.ts:54


capitalization?

optional capitalization?: number

Defined in: src/tss/stylesheet.ts:75

0 none, 1 all caps, 2 small caps, 3 title case.


fontColor?

optional fontColor?: Color

Defined in: src/tss/stylesheet.ts:60


fontName?

optional fontName?: string

Defined in: src/tss/stylesheet.ts:59

PostScript font name, e.g. "Helvetica-Bold".


fontSize?

optional fontSize?: number

Defined in: src/tss/stylesheet.ts:57

Point size.


italic?

optional italic?: boolean

Defined in: src/tss/stylesheet.ts:55


kerning?

optional kerning?: number

Defined in: src/tss/stylesheet.ts:83

Manual kerning adjustment.


language?

optional language?: string

Defined in: src/tss/stylesheet.ts:90

BCP-47 language tag used for spelling and hyphenation.


ligatures?

optional ligatures?: number

Defined in: src/tss/stylesheet.ts:77

0 required, 1 standard, 2 all.


outline?

optional outline?: number

Defined in: src/tss/stylesheet.ts:86

Glyph outline width; 0 = filled text.


outlineColor?

optional outlineColor?: Color

Defined in: src/tss/stylesheet.ts:87


shadow?

optional shadow?: Shadow

Defined in: src/tss/stylesheet.ts:88


strikethru?

optional strikethru?: number

Defined in: src/tss/stylesheet.ts:70

0 none, 1 single, 2 double, 3 triple — see StrikethruType.


strikethruColor?

optional strikethruColor?: Color

Defined in: src/tss/stylesheet.ts:71


strikethruWidth?

optional strikethruWidth?: number

Defined in: src/tss/stylesheet.ts:72


superscript?

optional superscript?: number

Defined in: src/tss/stylesheet.ts:79

0 normal, 1 superscript, 2 subscript.


tracking?

optional tracking?: number

Defined in: src/tss/stylesheet.ts:81

Additional tracking (fraction of font size).


underline?

optional underline?: number

Defined in: src/tss/stylesheet.ts:64

0 none, 1 single, 2 double, 3 wavy — see UnderlineType.


underlineColor?

optional underlineColor?: Color

Defined in: src/tss/stylesheet.ts:65


underlineWidth?

optional underlineWidth?: number

Defined in: src/tss/stylesheet.ts:66


wordStrikethru?

optional wordStrikethru?: boolean

Defined in: src/tss/stylesheet.ts:73


wordUnderline?

optional wordUnderline?: boolean

Defined in: src/tss/stylesheet.ts:68

Underline words only, skipping the spaces between them.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.