Quantcast
Channel: MobileRead Forums - Kobo Reader
Viewing all articles
Browse latest Browse all 11147

Embedded fonts in epub

$
0
0
With firmware 3.5.0 (I'm not sure about previous versions) I've noticed that custom fonts override some embedded fonts, depending on how they are used.

For instance:

Code:

<div class="font">
<p>Test</p>
</div>

<div>
<p><span class="font">Test</span></p>
</div>

where the class "font" just uses some embedded font with font-family.

With "Document Default" font selected, both "Test" use the embedded font, but if I select any other font (included or sideloaded), only the second one uses the embedded font, and the first uses whichever font I've selected.

So, it looks like the selected font is being used "as if" in a p or * CSS rule. Does anyone have further information on how exactly this works? Could a patch be created to make the custom font apply to body only (I'm interested in chosing my default font, but not overriding document-defined fonts)?

Viewing all articles
Browse latest Browse all 11147

Trending Articles