Skip to content

API > @blocksuite/blocks > getFontString

Function: getFontString ​

getFontString(__namedParameters): string

Parameters ​

ParameterType
__namedParametersobject
__namedParameters.bold?boolean
__namedParameters.fontFamilystring
__namedParameters.fontSizenumber
__namedParameters.italic?boolean
__namedParameters.lineHeightstring

Returns ​

string

Defined In ​

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