Skip to content

Various examples need their font sizes adjusted post-cosmic-text #14265

@rparrett

Description

@rparrett

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:

image

We should

  • look through the Pixel Eagle report
  • note examples where the font size has significantly changed
  • make a judgment about whether to
    • divide the specified font size by 1.2ish.
    • OR, modify the example to use the default text size (and possibly color) instead.
      There are various examples where we probably should be using the default values but we are not. e.g. low_power.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions