Package version:

Interface DocumentStyle

An object representing observed text styles.

Hierarchy

  • DocumentStyle

Properties

backgroundColor?: string

Background color in #rrggbb hexadecimal format..

color?: string

Foreground color in #rrggbb hexadecimal format.

confidence: number

Confidence of correctly identifying the style.

fontStyle?: string

Font style.

fontWeight?: string

Font weight.

isHandwritten?: boolean

Is content handwritten?

similarFontFamily?: string

Visually most similar font from among the set of supported font families, with fallback fonts following CSS convention (ex. 'Arial, sans-serif').

spans: DocumentSpan[]

Location of the text elements in the concatenated content the style applies to.

Generated using TypeDoc