View Single Post
Old 07-15-2014, 02:02 PM   #129
Anak
Guru
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Yep, i also don't like those cut off characters: all fonts with a negative right side baring (rsb), of which the "f" is probably the most common.

I don't know if this works for kepubs but it works for regular epubs. Do not use the margin property to set page margins, use the padding property instead. This won't cut off characters with negative side barings.

CSS
Code:
Do not use:
@page {margin:0;}
p,div {margin:0;padding:0;} /* optional / necessery if all default values are set in the body tag */
div.page-margins {
margin-left:2%;
margin-right:2%;
}

Use this
@page {margin:0;}
p,div {margin:0;padding:0;} /* optional / necessery if all default values are set in the body tag */
div.page-margins {
padding-left:2%;
padding-right:2%;
}
HTML, add/wrap this code around, something like:
Code:
<body>
<div class="page-margins">
…  
</div>
</body>

Last edited by Anak; 07-15-2014 at 02:07 PM.
Anak is offline   Reply With Quote