Font renderer uses wrong baseline for some words

Bug #1827544 reported by Benedikt Straub
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
High
Unassigned

Bug Description

Some words are drawn with a 1 pixel lower baseline, causing the text layout to look irregular. Especially noticeable in campaign messages with long text.

Attached is a screenshot of a tooltip where the baselines of a lowered word and its correctly layouted neighbours are marked in red.

Tags: graphics ui
Revision history for this message
Benedikt Straub (nordfriese) wrote :
Revision history for this message
GunChleoc (gunchleoc) wrote :

That looks like a rounding error.

Revision history for this message
Toni Förster (stonerl) wrote :

This happens in the chat window where the text if the message is two pixels higher than the username.

GunChleoc (gunchleoc)
Changed in widelands:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Toni Förster (stonerl) wrote :

@Gun

./src/graphic/text/rt_render.cc:978:14: warning: implicit conversion increases floating-point precision: 'float' to 'const double' [-Wdouble-promotion]
             scale_(1.0f),
                   ~^~~~

Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.