buskill-app icon indicating copy to clipboard operation
buskill-app copied to clipboard

Font size is silly small on MacOS after upgrade to v0.5.0

Open maltfield opened this issue 3 years ago • 4 comments

Describe the bug

For some reason, the font size on MacOS after upgrading the BusKill app to v0.5.0 is really small

To Reproduce Steps to reproduce the behavior:

  1. Download the BusKill app v0.5.0
  2. Open the BusKill app
  3. Struggle to read font

Expected behavior

The font size should be reasonably large and easy-to-read. If needed, the user should be able to increase the font size, as needed.

Screenshots

Versions (please complete the following information):

  • OS: MacOS running Monterey (12.6) (MacBook Pro)
  • BusKill: v0.5.0

Additional context Add any other context about the problem here.

maltfield avatar Oct 06 '22 14:10 maltfield

Until we implement #16 and add an option to the GUI for the user to be able to modify the font size of the app as a more-permanent workaround to this bug and the problem more generally (also good for accessibility), it appears that the user might be able to modify the font size used by kivy by manually editing the kivy config file's font options:

  • https://github.com/BusKill/buskill-app/issues/39#issuecomment-1312534373

maltfield avatar Nov 12 '22 17:11 maltfield

I noticed on Sam's recent video drafts that these fonts are silly small:

  1. The text in the Action Bar = Settings or Trigger
  2. The text on the Arm and Disarm buttons (and the text above it)

While these fonts are sized as-desired:

  1. The contents of the settings screen
  2. The ActionBar overflow (eg Reset on the Settings window)

TODO: Look for differences in the above widgets to see why some of the text is smaller that the others

maltfield avatar Mar 16 '24 19:03 maltfield

It looks like my newer settings window options use font RobotoMedium size 18

Whereas the older things like the contents of the Arm button are Roboto size 16

I've also seen use of RobotMeidum size 20 (dialog confirmation title) and RobotoMedium size 16 (in the Navigation Drawer) and RobotoMono size dp(12).

Actually, I wonder if the last one caused the issue.

https://github.com/BusKill/buskill-app/blob/53f631d7cf45bcafc752a520625099d0fcca9ede/src/buskill.kv#L249-L254

The above line was committed on 2022-06-11.

  1. v0.4.0 was tagged 2020-10-16
  2. v0.5.0 was tagged 2022-12-27

Therefore, if this bug was introduced in v0.5.0, I think the addition of this dp() sized font is the culprit! Perhaps kivy changes the way fonts are registered once you include a font with dp() values?

maltfield avatar Mar 16 '24 19:03 maltfield

I just stumbled on this python module that auto-sizes text font sizes as the window size increases

  • https://github.com/yglazner/kivyoav

maltfield avatar Mar 16 '24 19:03 maltfield