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

feat: change font in text component #620

Open
dragoncoder047 opened this issue Mar 1, 2025 · 0 comments
Open

feat: change font in text component #620

dragoncoder047 opened this issue Mar 1, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dragoncoder047
Copy link
Contributor

dragoncoder047 commented Mar 1, 2025

I already mentioned this on the discord but it would probably be a nice addition.

The text styles entries of the text component can have a font property that change the font, so there can be multiple fonts in the same block of text.

To minimize the texture switching the quads for all of the letters can probably just can be sorted by font, and rendered in that order, since the quads don't overlap and won't be translated by a sort.

@dragoncoder047 dragoncoder047 added the enhancement New feature or request label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant