Gravity labels rendered incorrectly
Bug #998121 reported by
Sibi Antony
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Low
|
Sibi Antony |
Bug Description
The gravity labels option has the text rendered in an incorrect way.
Working with the TUI menu, the text can get lengthy and jumps off the dome circle often. Attached is a screenshot with problem areas encircled.
The problems are that
* The text is not strictly following a circular path, rather the angles are incorrectly computed at many places.
* shifting - xhift, yshift does not really offer a workaround.
* The cardinal points are drawn over while using the disk viewport.
Related branches
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The problem seems to be with the circle algorithm. I checked history of drawGravityText 180() and stellarium was using a totally different algorithm in the beginning. (Which was based on projection transforms).
With the current implementation it is intended to follow circular path around the projection center, it doesn't always. Since the coordinates are calculated incrementally from the previous ones, there is always an error involved.
The attached patch should address the problem. This uses a much simpler algorithm to make sure that the distance with the projection center is constant. Takes into account the width of each character relative to the average width, to compute angles for each character.