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

Text: allow for multiple SDF atlas textures #270

Open
lojjic opened this issue Jul 11, 2023 · 0 comments
Open

Text: allow for multiple SDF atlas textures #270

lojjic opened this issue Jul 11, 2023 · 0 comments

Comments

@lojjic
Copy link
Collaborator

lojjic commented Jul 11, 2023

The current implementation uses one texture, sized at 2048 wide. With a default glyph size of 64x64, in the 4 color channels, the 2048x2048 texture will hold 4096 glyphs.

That's enough for most cases, but in cases where there are many fonts/weights/styles in use, or character sets with large numbers of glyphs, or larger SDF sizes, or all of the above, it's conceivable the single texture won't be enough.

We should add the ability to overflow onto a second/third/etc. texture and update the shader to read from them.

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