Open hakanai opened 9 years ago
It seems I'm not the first to notice this quirk and it supposedly behaves differently depending on the display resolution, even though that should not affect printing.
http://stackoverflow.com/questions/10299633/qtextdocumentdrawcontents-only-renders-at-96-dpi (the accepted answer here might fix it)
Does this only affect PDF output?
Good question. We only use PDF output.
Edit: And I can't seem to see the command-line parameter to choose the DPI for a PNG, so I'm not sure how I could compare it.
Given a fairly simple HTML with no style of its own:
Providing the user stylesheet:
The kerning comes out looking very uneven, but if I make the font much larger:
Now it looks perfect.
I get the feeling that the comment about changing the quality settings for the QPrinter is relevant. Perhaps webkit thinks it's rendering to a 72dpi device, so it's moving letters to align them with the pixels, even though it shouldn't?
Screenshot of the 11pt version zoomed in vs. the 40pt version: