charton API / @chart-on/core / index / drawingFont
Function: drawingFont()
drawingFont(
size,family,style?,weight?):string
Defined in: packages/core/src/drawing/draw.ts:99
CSS font for drawing text: italic and bold as style sets them, size px, in family, at weight when not bold (see drawingWeight). Tools draw and measure text through it (env.measureText does), so a hit box matches the text it covers.
Parameters
size
number
family
string
style?
DrawingTextStyle = {}
weight?
FontWeight = 400
Returns
string