View Single Post
Old 07-16-2014, 08:34 AM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Embedded fonts in epub

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)?
Jellby is offline   Reply With Quote