Hello everyone.

After I changed the default font in KDE Plasma 6.1.4 on Bazzite to Atkinson Hyperlegible, all desktop icons have weird line spacing in the name. Notice how .png is hanging behind tge icon for TextFile sh. Changing the font size does nothing. Only if I switch back to the defaults does it fix itself. Any idea how I can keep Atkinson as a font and fix this issue?

Edit: In edit mode (right click on desktop) I can set the Text lines to 1 which makes things bearable. Still no way to manage the weird spacing issue. Seems that not all icon are affected. Couldn’t find a pattern.

  • ShaunaTheDead@fedia.io
    link
    fedilink
    arrow-up
    3
    ·
    2 hours ago

    If you open /usr/share/plasma/plasmoids/org.kde.plasma.icon/main.qml and search for line there’s a section called PlasmaExtras.ShadowedLabel which seems to correspond with icon text and there’s a line maximumLineCount: 2 you could try reducing that to 1 and it might fix your issue.

    It looks like KDE Plasma is based on QT6 and the icons I believe are a QT6 Label so you can also add some styling to it yourself. Here’s the documentation for it: https://doc.qt.io/qt-6/qml-qtquick-controls-label-members.html

    There is a property called lineHeight so you could just add that to the PlasmaExtras.ShadowedLabel and see if that fixes it.

  • placatedmayhem@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    23 hours ago

    It looks like the png is getting word wrapped. Line spacing is so large that the png on the second line is getting pushed into the space of the icon below, and the icon below is given a higher Z value, so it goes over it. The different font has a different letter width and can influence the line spacing by being taller than the original font.

    See if you can find an option to reduce line spacing or an option to increase icon spacing (vertical or horizontal). I would expect these to be advanced settings though. Iirc, most Linux desktops don’t use ellipses on long names, like some other operating systems (macOS iirc).

    • some_random_nick@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      22 hours ago

      The KDE system settings have no such option :-/ All my google results for line spacing are regarding the terminal, non for my case. I guess there is some config file somewhere that I can edit, but sine I am still nee to Linux, I jave no idea where to start.

    • nyan@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      22 hours ago

      Or, if you can’t find any of those other settings, try decreasing the font size by 1 pt or 1-2 px (not sure what unit KDE6 uses for font sizes) and see if that works better with the new font’s letter widths and kerning.