Skip to content

API > @blocksuite/blocks > getLineHeight

Function: getLineHeight ​

getLineHeight(fontFamily, fontSize): number

Parameters ​

ParameterType
fontFamilystring
fontSizenumber

Returns ​

number

Defined In ​

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