Skip to content
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

Letterspacing is different for polyline labels #4404

Closed
olt opened this issue Jul 24, 2012 · 2 comments
Closed

Letterspacing is different for polyline labels #4404

olt opened this issue Jul 24, 2012 · 2 comments
Assignees
Milestone

Comments

@olt
Copy link
Contributor

olt commented Jul 24, 2012

Labels on a straight line are rendered differently than on curved lines. As mentioned in #4026, the inter-character spacing is defined in the font itself, but that spacing is multiplied by 1.25 when a label is rendered on a polyline.
See: https://github.com/mapserver/mapserver/blob/master/mapprimitive.c#L1818

Here you can see how "Alter Wall" and "Neuer Wall" are rendered with different spacing. "Alter Wall" is on a straight line, while "Neuer Wall" is on a curved line.
https://dl.dropbox.com/u/2633201/issues/mapserver/letterspacing-125.png

Changing the letterspacing to 1.0 in mapprimitice.c make the rendering more similar:
https://dl.dropbox.com/u/2633201/issues/mapserver/letterspacing-100.png

@ghost ghost assigned tbonfort Jul 24, 2012
@tbonfort
Copy link
Member

I would be in favor of removing the 1.25 letterspacing factor as it doesn't prevent overlapping artifacts, and produces incoherent results across different features (some FOLLOW labels fall back to AUTO, in which case they are rendered without the spacing applied). Do you want to bring this up on the mailing list ?

@olt
Copy link
Contributor Author

olt commented Jul 24, 2012

tbonfort added a commit to MapServer/msautotest_DEPRECATED that referenced this issue Sep 5, 2012
mkofahl pushed a commit to faegi/mapserver that referenced this issue Apr 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants