Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Glyph

Represents a single Glyph within a Font.

Hierarchy

  • Glyph

Index

Properties

_fill

_fill: Fill

Private _graphic

_graphic: Graphics = null

_stroke

_stroke: Stroke

_strokeStyle

_strokeStyle: StrokeStyle

kerning

kerning: any

offset

offset: number

path

path: string = ""

SVG path data

Methods

draw

  • draw(ctx: CanvasRenderingContext2D): boolean
  • Parameters

    • ctx: CanvasRenderingContext2D

    Returns boolean

getKerning

  • getKerning(characterCode: number, size: number): number
  • Parameters

    • characterCode: number
    • size: number

    Returns number

graphic

Generated using TypeDoc