@mocanvas/mocanvas · function
declare function getLabelFontFaces(font: DefaultFontStyle): TLFontFace[]The typefaces a label in font needs: the four [style][weight] faces of
that family.
This is what a text-bearing ShapeUtil.getFontFaces answers. Only the
*built-in* face registry is consulted — a theme that names its own families
registers their faces with the font manager itself, because a CSS stack says
which families to try, not where to fetch them.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.