KHD-397 Fix kepub side bearing font cut-off bug

3.17.3 (407d48ba86)    libnickel.so.1.0.0    no    3.16.0 - 3.17.3+   

In kepubs, characters with large side bearing values (such as italic f, J) can be cut off if they appear at the very end of a line. The problem occurs in normal reading mode when the margin adjustment slider is set to minimum and in full-screen mode at any margin slider setting. To fix it this patch adds one of the following lines to the built-in kepub stylesheet, depending on patch options chosen (first line is the default if no options are changed): body>div{padding-left:.2em!important;padding-right: .2em!important} body>div{padding-top: .2em!important;padding-bottom:.2em!important} body>div{padding: .2em .2em!important} body>* {padding-left:.2em!important;padding-right: .2em!important} body>* {padding-top: .2em!important;padding-bottom:.2em!important} body>* {padding: .2em .2em!important} There are two main types of kepub, each affected differently by this patch: Type 1: kepubs created by Kobo from epub2 books, or created by Calibre with a recent version of the KoboTouchExtended driver. Type 2: kepubs created by Kobo from epub3 books, or created by Calibre with an old version of the KoboTouchExtended driver. Type 1 kepubs work best with this patch, the only side effects should be slightly larger screen margins. Some Type 2 kepubs might suffer additional side effects such as extra horizontal or vertical space between elements. There is an option below (marked **1**) where you can choose whether to fix the bug only for Type 1 kepubs (default) or for both types. There are also options below (marked **2**) to make the patch suit kepubs with horizontal or vertical text directions, or both. The side effects for Type 2 kepubs will likely be worse if the option for both horizontal and vertical is chosen.

How this hack is customized by KHD users:

0 user profiles have this patch enabled. 0 disabled.

All user profiles use the default patch code.