Skip to content

Support window-independent scaling for text#12705

Closed
floppyhammer wants to merge 4 commits intobevyengine:mainfrom
floppyhammer:make-text-scaling-window-independent
Closed

Support window-independent scaling for text#12705
floppyhammer wants to merge 4 commits intobevyengine:mainfrom
floppyhammer:make-text-scaling-window-independent

Conversation

@floppyhammer
Copy link
Contributor

Fixes #11375. However, I've got no glue how to handle Text2d because currently TargetCamera is only for UI nodes.

I doubt we need to apply the scale factor to Text2d at all, as an overall scale of 2D/3D elements should be controlled by a camera's zoom only (meanwhile UI elements need to take into account the scale factor).

@ItsDoot ItsDoot added C-Bug An unexpected or incorrect behavior A-UI Graphical user interfaces, styles, layouts, and widgets A-Text Rendering and layout for characters labels Mar 26, 2024
@TotalKrill
Copy link
Contributor

This will probably have to be updated, and revisited since #10193 is about to land

@rparrett
Copy link
Contributor

rparrett commented Oct 10, 2024

Looks like this was addressed in #13697. Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text is cut off in render_ui_to_texture example with high scale factors.

4 participants