Skip to content

API > @blocksuite/blocks > getLineWidth

Function: getLineWidth ​

getLineWidth(text, font): number

Parameters ​

ParameterType
textstring
fontstring

Returns ​

number

Defined In ​

packages/blocks/src/surface-block/elements/text/utils.ts:70