Skip to content

cupertino-files / CharacterFormatting

Interface: CharacterFormatting ​

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

Properties ​

backgroundColor? ​

optional backgroundColor?: Color

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

Text highlight colour behind the glyphs.


baselineShift? ​

optional baselineShift?: number

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


bold? ​

optional bold?: boolean

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


capitalization? ​

optional capitalization?: number

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

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


fontColor? ​

optional fontColor?: Color

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


fontName? ​

optional fontName?: string

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

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


fontSize? ​

optional fontSize?: number

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

Point size.


italic? ​

optional italic?: boolean

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


kerning? ​

optional kerning?: number

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

Manual kerning adjustment.


language? ​

optional language?: string

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

BCP-47 language tag used for spelling and hyphenation.


ligatures? ​

optional ligatures?: number

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

0 required, 1 standard, 2 all.


outline? ​

optional outline?: number

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

Glyph outline width; 0 = filled text.


outlineColor? ​

optional outlineColor?: Color

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


shadow? ​

optional shadow?: Shadow

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


strikethru? ​

optional strikethru?: number

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

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


strikethruColor? ​

optional strikethruColor?: Color

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


strikethruWidth? ​

optional strikethruWidth?: number

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


superscript? ​

optional superscript?: number

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

0 normal, 1 superscript, 2 subscript.


tracking? ​

optional tracking?: number

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

Additional tracking (fraction of font size).


underline? ​

optional underline?: number

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

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


underlineColor? ​

optional underlineColor?: Color

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


underlineWidth? ​

optional underlineWidth?: number

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


wordStrikethru? ​

optional wordStrikethru?: boolean

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


wordUnderline? ​

optional wordUnderline?: boolean

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

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.