Open yjbanov opened 3 years ago
How is the font chosen for a particular FormattedTextFragment communicated back to the application such that the application is able to render it?
Update: https://github.com/WICG/canvas-formatted-text/issues/29 answers this question.
When rendering to WebGL, fallback fonts provided by the browser are not available. The application must provide its own fonts. Let's say the app starts with a set of
Uint8Array
s containing TTF, perhaps downloaded usingfetch()
:FormattedTextFragment
that's laid out using the provided font set?FormattedTextFragment
communicated back to the application such that the application is able to render it?