-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alignment of TrueType label is not beautiful. #1449
Comments
Author: sdlime
|
Author: sdlime
|
Author: sdlime
|
Author: gis@oi.nu
|
Author: sdlime
|
Author: sdlime
|
Author: tbonfort there's a flaw in this way of doing this, as as soon as the label is a multiline label, the whole label is offset vertically further and further away from the label point as the numer of lines increases. is this way of using labels still usefull now that we have label follow ? |
Author: sdlime Steve |
Author: sdlime But, now looking at the code it is assuming a single line of text and in the case of multi-line text the bbox is too big so the offset is wrong. Argh... We can't just not compute the offset for multi-line labels. If mixed with single-line labels the base offset would be different and things would never align. What about using just the first line in a multi-line label? That should give a proper bbox to compute the baseline offsets. The x offset is based on the minx so the length doesn't matter. Steve |
Author: tbonfort as Steve suggested, we now adjust the baseline by only looking at the first line in the case of multiline text |
Author: tbonfort |
This issue will be cleanly tackled in RFC98 #4673 |
Reporter: gis@oi.nu
Date: 2005/08/31 - 18:05
Trac URL: http://trac.osgeo.org/mapserver/ticket/1449
The text was updated successfully, but these errors were encountered: