-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Various examples need their font sizes adjusted post-cosmic-text
#14265
Labels
A-Text
Rendering and layout for characters
C-Bug
An unexpected or incorrect behavior
C-Examples
An addition or correction to our examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Milestone
Comments
rparrett
added
C-Bug
An unexpected or incorrect behavior
S-Needs-Triage
This issue needs to be labelled
labels
Jul 10, 2024
janhohenheim
added
C-Examples
An addition or correction to our examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
A-Text
Rendering and layout for characters
and removed
S-Needs-Triage
This issue needs to be labelled
labels
Jul 10, 2024
I might take this one, unless somebody is in the mid of implementation. |
Trying to create a list of all the examples. examples
2d
ui
window
ecs
transforms
time
games
input
reflection
scene
shader
stress_tests
math
movement
gizmos
tools
dev_tools
camera
3d
picking
animation
app
asset
async_tasks
audio
diagnostics
states
|
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 16, 2024
# Objective - Fixes #14265 ## Solution - Go through Pixel Eagle examples (and examples all in all) - If default size is used it is usually left there - If size of font is touched try dividing with 1.2 and round it to nearest whole number ## Testing - Run example before and after - Make sure examples text are readable or like before cosmic-text change --- ## Showcase Before: ![image](https://github.com/user-attachments/assets/beb2d5af-d1ee-4c2c-89c4-8e59c53b53b4) After: ![image](https://github.com/user-attachments/assets/fef28a8d-dc26-4e0e-9870-6b216de906e8)
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
C-Bug
An unexpected or incorrect behavior
C-Examples
An addition or correction to our examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Bevy version
main, after #10193
Additional information
See this run from
bevy-example-runner
:https://pixel-eagle.com/project/b25a040a-a980-4602-b90c-d480ab84076d/run/3207/compare/3196?screenshot=UI%20(User%20Interface)/transparency_ui.png
Bevy's default font size and a few examples were updated to compensate, but some examples where the a font size other than the default was specified now may need to be updated.
Dividing the font size by
1.2
and rounding to the nearest whole number will give rendered text roughly the same size as before.One of the more obvious examples is
transparency_ui
, where the text no longer fits on one line:We should
1.2
ish.There are various examples where we probably should be using the default values but we are not. e.g.
low_power
.The text was updated successfully, but these errors were encountered: