View Single Post
Old 09-09-2020, 09:05 AM   #14
paperbackebook
Member
paperbackebook began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2020
Device: none
Continuing this sage...

I have looked into the xhtml and made a small reproducer.

What I notice is that every word in the book has a seperate span tag with absolute positioning. Is this accepted as normal in the ebook world? It looks ridiculous to me.

When I look at those positions in the span tag I see high numbers pixels. Example:
style="position:absolute;top:6113.53px;left:4640px ;letter-spacing:-1.29px;"

The decimal pixel values feel ridiculous tbh. Between each line there's 340px. (I removed the other lines). Yet some lines render properly and others seem to be displaced.
When looking at the page the words and lines are normally spaced. So nowhere near 340px diff between lines.
However the catch is this general div style:
transform: scale(0.05)
And the font size is 300px. Yes 300px.

So it seems during this scaling something goes wrong when printing. Still weird why it would render properly and then completely mess up though.
paperbackebook is offline   Reply With Quote