type SDFFontContextProps = {
__debug: {
atlas: Atlas,
},
getRadius: () => number,
getScale: (size: number) => number,
getGlyph:
(
font: number,
id: number,
size: number,
) => { glyph: GlyphMetrics, mapping: [number, number, number, number] },
getTexture: () => ShaderSource,
}
packages / workbench / src / text / providers / sdf-font-provider.ts