-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
Kerning issues with small fonts #1199
Comments
Hello! Do you have this problem only when rendering PNGs, or also with PDFs? |
Also with PNG (had to specify a resolution or it was unreadable). Could it be some floating point precision issue in the renderer? |
It’s probably caused by hinting, always set in WeasyPrint when generating PNGs. You can use the Python API to set |
Interesting, I'm going to make use of the API in the future for a tighter integration, though at the moment I don't have the time. For now I think I'll stick with the workaround, thanks. |
Debian stable (Buster, 10) includes Pango 1.42. Until the next version of Debian (Bullseye, 11) is released, keep a workaround to avoid crashes. This workaround is not documented on purpose, support of Pango 1.42 will not be improved. Also note that WeasyPrint with Pango 1.42 will suffer from #1199. Fix #1384.
I'm having trouble creating small labels with WeasyPrint, when I format fonts with a small size (5pt and below) the kerning gets all messed up. See the screenshot for more details. Testing this seems trivial, but if it's not reproducible I'll share an example code.
No idea if it's a WeasyPrint issue or one of the other libraries, though it's not a big problem for me, I can do a
transform: scale()
trick and have it render nicely.The text was updated successfully, but these errors were encountered: