tsujan / FeatherPad

Lightweight Qt Plain-Text Editor for Linux
GNU General Public License v3.0
392 stars 66 forks source link

Broken font selection dialog #832

Closed birdie-github closed 5 hours ago

birdie-github commented 6 hours ago

Issues:

  1. It doesn't list Terminus, instead there's empty something (a)
  2. There's a ton of unselectable white space, as if there are 30 to 40 invisible fonts

font selection

Software info is in bug #831

tsujan commented 5 hours ago

1 is so here too, but 2 isn't.

Exactly like https://github.com/tsujan/FeatherPad/issues/831, the problem isn't in FeatherPad.

birdie-github commented 5 hours ago

You're right. I've installed qterminal and it's affected by both bugs as well.

What's the Qt version in Arch at the moment?

tsujan commented 5 hours ago

Arch's Qt is 6.8.0.

Most probably, Terminus has a problem with Qt6. I don't know why I also have "xos4 Terminus"; it may be provided by another package, and it doesn't have the problem of Terminus.

tsujan commented 5 hours ago

Interesting! "xos4 Terminus" is provided by the package terminus-font in Arch.

The situation of Terminus seems like a mess. I have it here only by chance; never have used it (preferring DejaVu Sans Mono).

birdie-github commented 5 hours ago

I've installed terminus-fonts-legacy-x11-0:4.49.1-26.fc41.noarch and now everything works. It contains pcf files (Portable Compiled Format).

The existing package, terminus-fonts-4.49.1-26.fc41.noarch doesn't work. It contains otb files (OpenType Bitmap). Looks like OTB fonts break Qt6. Qt5 could use them just fine.

Perhaps I'll to need to file a bug report against Qt6.

tsujan commented 5 hours ago

When Qt6 came out, it had problems with colored emojis, which worked well with Qt5. Those issues are fixed now, but because of them, I won't get surprised if Qt6 has problem with OTB.

However, also take a look at https://wiki.archlinux.org/title/Font_configuration#FreeType_breaking_bitmap_fonts.

tsujan commented 5 hours ago

BTW, I'm on Wayland and can't log into X11 for now, so I don't know if Wayland can be related to this.