Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FontStyle

Defines a 'Text' graphic object's style property.

 //18pt bold face font
 const myFontStyle = {
     fontSize: 18,
     fontWeight: 'bold'
 }

Hierarchy

Properties

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