cscarney / syndic

Convergent feed reader for Plasma and Android
12 stars 2 forks source link

Font rendering bug #235

Closed plata closed 5 months ago

plata commented 5 months ago

Sometimes: Font Rendering

It's not persistent. After some time/interaction with the UI, it's normal again.

cscarney commented 5 months ago

Where is this in the application?

The font rendering code is deep within Qt and we don't have a lot of control over it, but we can switch between native and Qt font rendering in the specific view where the problem is happening and hope that fixes the problem.

plata commented 5 months ago

It's in the article list (all articles). I've not noticed it anywhere else (e.g. in the article content) yet.

cscarney commented 5 months ago

Native text rendering was already disabled in the article view to address a similar problem. Looks like I might have to disable it globally and switch to Qt's internal rendering across the board.

plata commented 5 months ago

https://bugs.kde.org/show_bug.cgi?id=479891

I've set the env var. Will report back if this is the problem after some testing.

plata commented 5 months ago

QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor seems to fix it indeed. I didn't see the problem again. I'm not sure if there will be a general solution but in the meantime setting this in Flatpak finish-args (--env=QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor) might be an option.

cscarney commented 5 months ago

Setting the environment variable shouldn't be necessary. QGuiApplication::setHighDpiScaleFactorRoundingPolicy is supposed to do the same thing.