Search
Preparing search index...
The search index is not available
OpenSheetMusicDisplay
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
OpenSheetMusicDisplay
VexFlowTextMeasurer
Class VexFlowTextMeasurer
Created by Matthias on 21.06.2016.
Hierarchy
VexFlowTextMeasurer
Implements
ITextMeasurer
Index
Constructors
constructor
Properties
context
font
Size
font
Size
Standard
rules
Methods
compute
Text
Width
To
Height
Ratio
set
Font
Size
Constructors
constructor
new
Vex
Flow
Text
Measurer
(
rules
:
EngravingRules
)
:
VexFlowTextMeasurer
Parameters
rules:
EngravingRules
Returns
VexFlowTextMeasurer
Properties
Private
context
context
:
CanvasRenderingContext2D
font
Size
font
Size
:
number
= 20
font
Size
Standard
font
Size
Standard
:
number
= ...
Private
rules
rules
:
EngravingRules
Methods
compute
Text
Width
To
Height
Ratio
compute
Text
Width
To
Height
Ratio
(
text
:
string
, font
:
Fonts
, style
:
FontStyles
, fontFamily
?:
string
, fontSize
?:
number
)
:
number
Parameters
text:
string
font:
Fonts
style:
FontStyles
fontFamily:
string
= undefined
fontSize:
number
= ...
Returns
number
set
Font
Size
set
Font
Size
(
fontSize
?:
number
)
:
number
Parameters
fontSize:
number
= ...
Returns
number
Exports
Vex
Flow
Text
Measurer
constructor
context
font
Size
font
Size
Standard
rules
compute
Text
Width
To
Height
Ratio
set
Font
Size
Generated using
TypeDoc
Created by Matthias on 21.06.2016.