View Single Post
Old 05-31-2018, 08:18 PM   #25
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by FrustratedReader View Post
Yes, I have a table now of Points to Em. though it's a simple ratio.
16pt approx 1.4em
It seems points/12 = ems
I think there is an editor that will do the conversion for you. I don't use it so I'm not sure exactly how it works.
Quote:
Examination of text with no first line indent, but a left margin (the body text = zero margin) is also spaced half the expected distance on a Kobo compared to every other reader and app. Thus Kobo are maybe dividing points by 24 if they "really" use ems (since the fonts rescale, obviously the Kobo converts points).
All the ePubs that I have that display same on the Kobo as everything else use em for left margin or indent.
The Kobo GUI replacement for indent is too much a blunt hammer, as it will not fix margins and sets ALL < p > tag indents to same settting.
I don't know what you mean there. While I usually set the text indent to the same value throughout a book, I definitely have seen books with different indents. And the Kobo does respect them. And I don't know what you mean by "will not fix margins". Again, as far as I can tell, the device is respecting any margins I set. The slider in the font settings for margins works as I expect - adding more to the existing margin. I think it works more by adjusting the size of the viewport rather than fiddling with the margins in the book.
Quote:
So workaround is to edit the CSS. I use the same small range of point sizes for everything so not hard.
It's annoying that:
1) The Kobo H2O obviously using the wrong factor to convert pt in CSS to whatever it really uses.
The kepub renderer does use a different factor for the font sizes than the epub renderer. If you select a font size in an epub and then open a kepub, the text will appear a lot smaller. That will probably affect anywhere that points are used for size, but it isn't something I have experimented with much.

I have to say that each time you make a statement about how this is working for you, it just makes me want to see the actual code you are using.
davidfor is offline   Reply With Quote