Function: getFont()
getFont(
styleSpecifier
,state
?,mode
?):string
getFont - Returns a font string of the form "{fontSize}px fontName"
used by canvas
.
Parameters
• styleSpecifier: StyleSpecifier
An object containing the specifications such as viewportId,
toolGroupId, toolName and annotationUID which are used to get the style if the level of specificity is
met (hierarchy is checked from most specific to least specific which is
annotationLevel -> viewportLevel -> toolGroupLevel -> default
.
• state?: AnnotationStyleStates
An optional state to determine the final property name
• mode?: ToolModes
An optional mode to determine the final property name
Returns
string
The font string.