Closed ggrossetie closed 3 years ago
It seems that the screenshot of Prince is outdated. Here's what I get using Prince 13.5:
I checked the latest results from https://beta.print-css.rocks/lesson/lesson-basic - the font-sizes across all tools appear to be correct and identical
I checked the latest results from beta.print-css.rocks/lesson/lesson-basic - the font-sizes across all tools appear to be correct and identical
Looks good, then I guess we can close this issue. Thanks for looking into it 👍🏻
I'm trying to understand why the font is smaller on Paged.js: https://print-css.rocks/lesson/lesson-basic
The font is approximatively 120% bigger on other tools. To try to understand, I've created a simple document in LibreOffice using Lato 16pt:
I've also created the same document in HTML (with Paged.js):
And here's a screenshot of the PDF generated by LibreOffice (on the left) and the PDF generated by Paged.js (on the right):
As you can see the font is slightly smaller on Paged.js but the ratio is only 1.03 (not 1.2). Since the difference is very small, it might just be a rounding issue.
Am I missing something? Do you know why the font is bigger on other tools? I couldn't find a specification on this topic so I'm not sure if Paged.js is right or wrong here.
As far as I understand, the pt unit depends on the points per inches, maybe we should use a font size in mm or inches to have a consistent output between tools?