linuxmint / linuxmint/cinnamon

Keyboard configuration: HiDPI has broken keymap display

Open
#12,369 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG stale
Dominant language
JavaScript
Stars
5.6k
Forks
915
Avg merge
5d 22h
Merged PRs (30d)
3

Description

Distribution

Arch (updated today)

Package version

6.2.9 (6.2.9-1)

Graphics hardware in use

Radeon 6700XT

Frequency

Always

Bug description

When using a high font scaling factor (2.0 for HiDPI), the keyboard map display in cinnamon-settings uses fonts that don't fit on the keys, like so:

keys-fonts-too-big

This window can be resized (upwards) making the keys bigger, however the fonts scale with the keys so that they still don't fit.

Steps to reproduce

Set font scaling to 2.0 or so
Open keyboard preferences → layout
Select the current layout in the list
Click the button to view the layout

Expected behavior

Expect that whatever resolution the keys are dawn at, the fonts labeling the keys would be chosen to fit. This might mean ignoring font scaling settings in this case—although if the fonts are scaled to fit the keys and the size of the keys are dictated by the pixel resolution of the screen (as seems to be the case given the three different screen geometries tested real quickly), that should yield appropriate results.

Additional information

Issue observed on Arch (where I'm posting the issue from), Mint 22, and LMDE 6. Not a distribution-specific issue.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in cinnamon-settings by setting font scaling to 2.0, opening keyboard preferences, selecting a layout, and viewing the layout. Trace the keyboard map display from that entry point and verify the result at high scaling and the reported screen geometries. Done means the labels fit within their keys without requiring a workaround, while normal-scale display remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.