keymanapp / keyman

Keyman cross platform input methods system running on Android, iOS, Linux, macOS, Windows and mobile and desktop web
https://keyman.com/
Other
367 stars 102 forks source link

bug(android): keyboard font size is affected by system font setting #11279

Closed Nnyny closed 1 week ago

Nnyny commented 2 weeks ago

Describe the bug

From the community site: https://community.software.sil.org/t/android-font-size-inside-of-keyboard/8689/2

The size of the letters on the Keyman keys is affected by the system-wide Android font settings.

Other keyboards (Gboard, AOSP) don’t seem to scale the letters like this. Is this a problem with Keyman, or is there something that I (the keyboard developer for this specific language) can do to make sure this doesn’t happen on end users phone.

[By the way, I had to restart the phone after changing font settings.]

What I would expect to happen would be for:

  • Keyman to ignore the system-wide font settings, and just use the font size that I (the keyboard developer) chose to best fit the keyboard, or (maybe) for
  • Keyman to accept the system-wide font, but then automatically try to adjust the height to fit it (still allowing for that choice to be manually overridden later if desired).

Reproduce the bug

No response

Expected behavior

No response

Related issues

No response

Keyman apps

Keyman version

16.0.147

Operating system

No response

Device

OnePlus 6t (a6013)

Target application

No response

Browser

No response

Keyboard name

No response

Keyboard version

No response

Language name

No response

Additional context

No response

jahorton commented 2 weeks ago

Interestingly, this does not appear to affect Keyman Engine for Web when not embedded in the WebView. Testing with Chrome 106, there is no visible scaling of OSK fonts. This only appears to be an issue within the app's WebView.