linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.58k stars 745 forks source link

Keyboard configuration: HiDPI has broken keymap display #12369

Open knghtbrd opened 3 months ago

knghtbrd commented 3 months ago

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.