Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supplying fonts for WebGL use-case #28

Open
yjbanov opened this issue Sep 3, 2021 · 1 comment
Open

Supplying fonts for WebGL use-case #28

yjbanov opened this issue Sep 3, 2021 · 1 comment

Comments

@yjbanov
Copy link
Contributor

yjbanov commented Sep 3, 2021

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 Uint8Arrays containing TTF, perhaps downloaded using fetch():

  • What is the sequence of steps that an app must perform to get to a FormattedTextFragment that's laid out using the provided font set?
  • What happens if no glyph is found in the font set?
  • How is the font chosen for a particular FormattedTextFragment communicated back to the application such that the application is able to render it?
@yjbanov
Copy link
Contributor Author

yjbanov commented Sep 3, 2021

How is the font chosen for a particular FormattedTextFragment communicated back to the application such that the application is able to render it?

Update: #29 answers this question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant