Why do I get these block characters on keyboard preview?

My 1st guess was a missing glyph on my fonts. So i updated my entire system (settings>text&fonts>fonts, adjust all fonts) and used a font from the Nerd group which is supposed to have bazillion glyphs. And I still get those blocks.

nobody complaining about this so I believe it might be something on my system only.

code is not very documented Harald Sitter / tastenbrett · GitLab but while short i have some naming for things i didn’t get very easy.

So that’s tastenbrett? Asking @sitter is a better option, but this code hasn’t been touched in 4 years

Actually lives here kcms/keyboard/tastenbrett · master · Plasma / Plasma Desktop · GitLab

Looks like a bug. If you want to investigate kcms/keyboard/tastenbrett/key.cpp · master · Plasma / Plasma Desktop · GitLab is probably where things go wrong (i.e. the QString holding the cap symbol is probably containing some garbage)

2 Likes

IIRC that’s caused by the font having a glyph for the NUL character. From the comment below, which I obviously didn’t follow through:

While playing around with different fonts, I noticed that some of them don’t like the ending ‘\0’ at the end of strings returned by xkbKeysymToUtf8, so I’ll probably create a MR for that.

Fixed now in git:

1 Like