Skip to content

V UI's text_size consistency, prefereably always f64 or converted to f64 #24077

@Wajinn

Description

@Wajinn

Describe the feature

V UI's text_size always as f64 or converted to f64.

Sometimes the text_size to use is f64 and sometimes int (example- WidgetTextStyle), depending on struct or function, so can break code. For instance, if a widget (f64) is contained within a group widget, which is part of a child window, then it's possible for the text size to be unexpectedly set to some unwanted default or a different size (appears to be f64 to int issue).

Use Case

Consistency and reliability of V UI.

Proposed Solution

V UI's text_size always as f64 or converted to f64

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

0.4.10 d629a01

Environment details (OS name and version, etc.)

Ubuntu 20.04/Fedora 41

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions