Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowTextMeasurer

Created by Matthias on 21.06.2016.

Hierarchy

  • VexFlowTextMeasurer

Implements

Index

Constructors

constructor

Properties

Private context

context: CanvasRenderingContext2D

fontSize

fontSize: number = 20

fontSizeStandard

fontSizeStandard: number = this.fontSize

Methods

computeTextWidthToHeightRatio

  • computeTextWidthToHeightRatio(text: string, font: Fonts, style: FontStyles, fontSize?: number): number

setFontSize

  • setFontSize(fontSize?: number): number

Generated using TypeDoc