You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rparrett opened this issue
Jan 19, 2023
· 0 comments
· Fixed by #9320
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsC-DocsAn addition or correction to our documentationD-TrivialNice and easy! A great choice to get started with Bevy
The font_size field of TextStyle can be confusing.
It corresponds to the vertical height of glyphs in pixels on the font atlas texture when they are rasterized. In other words, it is the text "resolution."
Additionally (I think) it is multiplied by the window scale factor, but not by camera scale.
With default camera/ui scaling, this is 1:1 with screen pixels, so it is often treated as a "text size." But this can be surprising to users with custom scaling, and we should at least mention this in the docs.
With a Text2dBundle and a zoomed-in camera, text will appear large and pixelated. With a zoomed-out camera, text will appear small.
With a TextBundle and a UI camera and higher UI scales, text will be larger (but not pixelated, I think?), etc.
Whoever picks this up should verify these statements.
The text was updated successfully, but these errors were encountered:
rparrett
added
C-Docs
An addition or correction to our documentation
S-Needs-Triage
This issue needs to be labelled
A-UI
Graphical user interfaces, styles, layouts, and widgets
D-Trivial
Nice and easy! A great choice to get started with Bevy
and removed
S-Needs-Triage
This issue needs to be labelled
labels
Jan 19, 2023
A-UIGraphical user interfaces, styles, layouts, and widgetsC-DocsAn addition or correction to our documentationD-TrivialNice and easy! A great choice to get started with Bevy
How can Bevy's documentation be improved?
The
font_size
field of TextStyle can be confusing.It corresponds to the vertical height of glyphs in pixels on the font atlas texture when they are rasterized. In other words, it is the text "resolution."
Additionally (I think) it is multiplied by the window scale factor, but not by camera scale.
With default camera/ui scaling, this is 1:1 with screen pixels, so it is often treated as a "text size." But this can be surprising to users with custom scaling, and we should at least mention this in the docs.
With a
Text2dBundle
and a zoomed-in camera, text will appear large and pixelated. With a zoomed-out camera, text will appear small.With a
TextBundle
and a UI camera and higher UI scales, text will be larger (but not pixelated, I think?), etc.Whoever picks this up should verify these statements.
The text was updated successfully, but these errors were encountered: