Interface ITextRun

Represents a span of character all with the same formatting

interface ITextRun {
    bold: boolean;
    fontName: string;
    fontSize: number;
    italic: boolean;
    kerningMin: number;
    letterSpacing: number;
    offset: number;
    strikeStyle: TextStrikeStyle;
    superSub: boolean;
    text: string;
    textCap: TextCap;
}

Hierarchy (view full)

Implemented by

Properties

bold: boolean
fontName: string

Will default from paragraph if not specified

fontSize: number

Will default from paragraph if not specified

italic: boolean
kerningMin: number

Specifies the minimum font size at which character kerning will occur for this text run. If this attribute is omitted, than kerning will occur for all font sizes down to a 0 point font.

letterSpacing: number

Specifies the spacing between characters within a text run.

offset: number

percent of font height shifted up + down. does not affect line-height.

strikeStyle: TextStrikeStyle
superSub: boolean
text: string

The characters included in this run

textCap: TextCap

Specifies the capitalization that is to be applied to the text run during layout and rendering. This does not actually effect the stored results