Interface PlacedTextRun

Represents a span of character all with the same formatting

interface PlacedTextRun {
    bold: boolean;
    bounds?: Bounds;
    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
bounds?: Bounds

Bounds is not copied during clone.

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