Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextStyle

Definition for a Text DisplayObject's fill style. This inherits properties from FontStyle.

 const red18pt = { fill: '#f00', fontSize: 18 }

Hierarchy

Properties

fill: Color

Optional. The color that the text should be rendered.

fontFamily: string

Optional. A string representing the font family to use. Ex: 'monospace, Courier New'

fontSize: number

a number representing the font point size.

fontStyle: string

Optional. The style to apply to the font, such as 'italic'.

fontWeight: string

Optional. Weight of the font. Will accept a string such as "bold".

letterSpacing: number

Optional. Represents space between letters in pixels.

lineHeight: number

Optional. Text line height. Represents the vertical space in pixels that this line of text takes up.

Generated using TypeDoc