Fix for blurry sky labels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Medium
|
Unassigned |
Bug Description
We all have noticed that sky labels are hard to read in version 0.10.3 (stars, planets, meridian/equator, etc). Depending on the zoom or how you move through the sky, labels will turn dimmer or brighter and they blink when they're moving through the sky.
I think there's a bug with how Qt is rendering fonts, so im proposing a workaround until the Qt dev team fixes (if it ever does) :)
Basically what i've noticed is that Qt will only render fonts correctly when they're aligned to the nearest integer, StelPainter:
Here's the code ive changed, all comes from StelPainter:
REMOVE:
glEnable(GL_BLEND);
glBlendFunc(
CHANGE:
qPainter-
TO:
qPainter-
CHANGE:
qPainter-
TO:
qPainter-
Only with this changes we get back sharp and clear fonts. I hope these changes help, maybe there's a better fix you can think of with this hints, but this one works great.
I'm looking if i can make the horizontal menu fonts look a bit better, if i found a fix i'll notify it.
Attaching a comparison screenshot.
Changed in stellarium: | |
milestone: | none → 0.10.4 |
status: | New → Fix Released |
Changed in stellarium: | |
milestone: | 0.10.4 → 0.10.5 |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
after patch