Skip to content

BlockSuite API Documentation / @blocksuite/blocks / TextUtils

Variable: TextUtils

const TextUtils: object

Type declaration

getCursorByCoord

getCursorByCoord: typeof __type

getFontFaces()

getFontFaces: () => FontFace[]

Returns

FontFace[]

getFontFacesByFontFamily

getFontFacesByFontFamily: typeof __type

getLineHeight

getLineHeight: typeof __type

isFontStyleSupported

isFontStyleSupported: typeof __type

isFontWeightSupported

isFontWeightSupported: typeof __type

isSameFontFamily()

isSameFontFamily: (fontFamily) => (fontFace) => boolean

Parameters

fontFamily

FontFamily | string

Returns

Function

Parameters
fontFace

FontFace

Returns

boolean

normalizeTextBound

normalizeTextBound: typeof __type

splitIntoLines

splitIntoLines: typeof __type

wrapFontFamily

wrapFontFamily: typeof __type

Defined in

packages/affine/block-surface/dist/index.d.ts:36