-
Notifications
You must be signed in to change notification settings - Fork 827
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
scale_factor breaks font rendering in 2.1; was ok in 2.0 #1273
Comments
Looks good to me. |
This change seems to work in simple tests: basically it has no effect when scale_factor is 1, but when greater now allows larger text rather than just larger spacing. But it broke 4 of the visual tests. @herm - can you see if you can figure out if the tests are valid or if they need to be updated? |
Great to hear @woodpeck! Thanks for reporting. |
Sorry, my last comment was wrong. The line in font_engine_freetype.cpp is actually needed. What the code does is:
If you don't set the font size in the last step you end up with all characters being the size of the last character. |
I'm setting a scale_factor of 2.0 on the agg renderer and this breaks font rendering in Mapnik 2.1. I'm using more or less the standard OSM Mapnik style. A test tile with scale 1.0 look ok:
The same tile rendered with scale_factor 2.0 in Mapnik 2.0 (2.0.1+dev20120507.git.7fe677d-1~precise1) looks right (icons are not scaled but that's a different issue):
However with Mapnik 2.1 (2.1.0+dev20120627.git.d9880ef-1~precise1) I am seeing:
It almost looks as if the font rendering engine was reverting to unifont for some reason.
The text was updated successfully, but these errors were encountered: