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

create font atlas that can contains fonts of any size #3592

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

@mockersf
Copy link
Member

@mockersf mockersf commented Jan 8, 2022

Objective

  • Bevy currently panics when displaying text with a very big font size (with font size greater than 400, the glyph would have a width or height greater than 512)
thread 'main' panicked at 'Fatal error when processing text: failed to add glyph to newly-created atlas GlyphId(514).', crates/bevy_ui/src/widget/text.rs:118:21

Solution

  • Create font atlas that scales up with the size of the glyphs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants