Skip to content

fix(layout): stop shrinking single-character key labels per key - #814

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/wide-letter-label-size
Nov 15, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/wide-letter-label-size

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Summary of Changes

Wide letters (w, m, and Cyrillic sh/shch/yu) rendered smaller than other letters on the keyboard in v4.3.3-beta2. Reported for English, Russian and Portuguese.

Motivation & Context

Commit 9ce4f9e (floating keyboard fix) added a per-key label fit in KeyboardView.onDrawKeyTopVisuals that shrank any label wider than 85% of the key width (tighter when a hint label is shown). It ran on every keyboard, so the widest glyphs were scaled down individually, most visibly on layouts with hint labels.

Changes Made

  • KeyboardView.kt: apply the label and hint fit only while the floating keyboard is active, and only to multi-character labels (e.g. 123, ABC). Single-character labels keep the uniform font size in all modes.

Verification & Testing

  • Builds via ./gradlew :app:assembleStandardDebug
  • Tested on device: w and m on English, Russian and Portuguese layouts, docked and floating

Guidelines Checklist

  • This PR addresses a single focused concern.
  • Does not add unnecessary dependencies or binary blobs.
  • No em dashes used in comments, descriptions, or documentation.

The floating-keyboard label fit ran on every keyboard and scaled each label
by its own width, so wide glyphs (w, m, and Cyrillic sh/shch/yu) rendered
smaller than other letters, most visibly on layouts with hint labels.
Restrict the fit to the floating keyboard and to multi-character labels so
single letters keep the uniform font size.
@LeanBitLab
LeanBitLab merged commit 3607e9c into main Nov 15, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/wide-letter-label-size branch November 15, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

⌂ Proxy