const FontContext: LiveContext<RustTextAPI>
( font: Partial<FontProps>, ) => number | null
( fonts: Partial<FontProps>[], ) => number[]
( fonts: Font[], ) => void
( fontId: number, size: number, ) => FontMetrics
measureSpans
(
fontStack: number[],
text: Uint16Array,
size: number,
) => SpanMetrics
( fontId: number, glyphId: number, size: number, ) => GlyphMetrics
( fontId: number, char: string, ) => [number, boolean]
loadMissingGlyph
(
fontId: number,
glyphId: number,
callback: (...args: any[]) => any,
) => void
( cb: ( ...args: any[], ) => any, ) => () => void
packages / workbench / src / text / providers / font-provider.ts