robiness / stage_craft

MIT License
5 stars 1 forks source link

Allow changing the textScaleFactor #41

Closed passsy closed 1 month ago

passsy commented 1 month ago

Screen-Recording-2024-07-30-19-51-20 gif

Added a new textScaleFactor adjustment tool to easily test different scale factors. I combined it with the stage zoom.

One-third of users modify text sizes for better readability. Developers should avoid using fixed heights for text to prevent content from being cut off when font sizes are increased. Supporting dynamic text scaling ensures applications are inclusive, user-friendly, and compliant with accessibility standards.

The textScale steps are arbitrarily chosen. There is a sheet at with the exact number for iOS 15. But they changed, so did the number of steps. Android has others, too. In the end any widget should be capable to support the range of 0.5-3x. The exact details don't matter.

Implementation details: