canvasFont
canvasFont(
font):string
Defined in: labels/measure.ts:52
Strip a /line-height token from a CSS font shorthand so it is valid for the canvas font
property (which rejects line-height), e.g. "600 11px/1 system-ui" → "600 11px system-ui", with
or without spaces around the slash (browsers serialize it as "11px / 1").
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string