Skip to content

Replace the f32 font_size value of TextStyle with a FontSize enum #9525

@ickshonpe

Description

@ickshonpe

What problem does this solve or what need does it fill?

Replacing the font_size field of TextStyle with an enum similar to Bevy UI's Val type would enable users to set responsive font sizes that depend on the size of the viewport or the text's parent container.

What solution would you like?

#9524

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions