Hi everyone!
First of all: I've checked the forums for similar-sounding issues but couldn't find a solution to my problem—if this has been discussed before, please let me know
We're working on a project that includes text-editing in the browser and are (happily) using Prince to convert the results to PDF. Lately, we've been noticing that font sizes in our result files appear to be a tiny bit smaller than in the browser; this becomes esp. noticeable when rendering multiple paragraphs of (small) text with `text-align: justify` as lines will start to break at different words.
I'm suspecting this _might_ be related to us using very small font sizes (e. g. 4px in the example) and scaling them up via `transform` causing rounding "errors" during the PDF conversion?
I've attached a screenshot showing the difference—font sizes are consistent across browsers but will "shrink" in the PDF—as well as a minimal input HTML file that allows to reproduce the issue.
We're converting with a plain `prince -o ./out.pdf ./in.html` (no additional stylesheets).
Any help would be highly appreciated, thank you very much in advance!
Best,
Nico
First of all: I've checked the forums for similar-sounding issues but couldn't find a solution to my problem—if this has been discussed before, please let me know
We're working on a project that includes text-editing in the browser and are (happily) using Prince to convert the results to PDF. Lately, we've been noticing that font sizes in our result files appear to be a tiny bit smaller than in the browser; this becomes esp. noticeable when rendering multiple paragraphs of (small) text with `text-align: justify` as lines will start to break at different words.
I'm suspecting this _might_ be related to us using very small font sizes (e. g. 4px in the example) and scaling them up via `transform` causing rounding "errors" during the PDF conversion?
I've attached a screenshot showing the difference—font sizes are consistent across browsers but will "shrink" in the PDF—as well as a minimal input HTML file that allows to reproduce the issue.
We're converting with a plain `prince -o ./out.pdf ./in.html` (no additional stylesheets).
Any help would be highly appreciated, thank you very much in advance!
Best,
Nico