Hierarchy

  • Font

Implements

Index

Constructors

constructor

  • Parameters

    • Default value family: string = "Arial"
    • Default value emSize: number = 10
    • Optional style: FontStyle
    • Optional unit: GraphicsUnit

    Returns Font

Properties

fontFamily

fontFamily: FontFamily

size

size: number

style

style: FontStyle = FontStyle.Regular

unit

unit: GraphicsUnit = GraphicsUnit.Point

Accessors

bold

  • get bold(): boolean
  • Returns boolean

italic

  • get italic(): boolean
  • Returns boolean

name

  • get name(): string
  • Returns string

sizeInPoints

  • get sizeInPoints(): number
  • Returns number

strikeout

  • get strikeout(): boolean
  • Returns boolean

underline

  • get underline(): boolean
  • Returns boolean

Methods

clone

  • clone(cloneProperties?: boolean, cloneComponents?: boolean): any
  • Creates a new object that is a copy of the current instance.

    Parameters

    • Default value cloneProperties: boolean = true
    • Default value cloneComponents: boolean = true

    Returns any

getHashCode

  • getHashCode(): number
  • Returns number

getHeight

  • getHeight(): number
  • Returns number

toString

  • toString(): string
  • Returns string

Generated using TypeDoc