BlockSuite API Documentation / @blocksuite/blocks / TextUtils
Variable: TextUtils
const
TextUtils:object
Type declaration
getCursorByCoord
getCursorByCoord: typeof
getCursorByCoord
getFontFaces()
getFontFaces: () =>
FontFace
[]
Returns
FontFace
[]
getFontFacesByFontFamily
getFontFacesByFontFamily: typeof
getFontFacesByFontFamily
getLineHeight
getLineHeight: typeof
getLineHeight
isFontStyleSupported
isFontStyleSupported: typeof
isFontStyleSupported
isFontWeightSupported
isFontWeightSupported: typeof
isFontWeightSupported
isSameFontFamily()
isSameFontFamily: (
fontFamily
) => (fontFace
) =>boolean
Parameters
• fontFamily: @blocksuite/affine-model
| string
Returns
Function
Parameters
• fontFace: FontFace
Returns
boolean
normalizeTextBound
normalizeTextBound: typeof
normalizeTextBound
splitIntoLines
splitIntoLines: typeof
splitIntoLines
wrapFontFamily
wrapFontFamily: typeof
wrapFontFamily
Defined in
packages/affine/block-surface/dist/index.d.ts:37