Thread: Aura H2O Referencing internal fonts?
View Single Post
Old 12-12-2014, 07:03 AM   #8
scoky
Connoisseur
scoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy bluescoky can differentiate black from dark navy blue
 
Posts: 62
Karma: 13112
Join Date: Feb 2013
Device: Kindle Paperwhite; KOBO AURA HD
Quote:
Originally Posted by GeoffR View Post
I tested on my Glo with a sideloaded kepub, and the epub 'res:///fonts' method worked for the kepub too. (I didn't use Calibre to make the kepub, just copied the .epub to .kepub.epub)

Edit: After further testing, I see the 'res:///fonts' method doesn't work with kepubs for some fonts. e.g. Amasis works for both epub and kepub, but Avenir only works in epub.
If I only use "font-family: XXXX;" (XXXX is the font name in Font Face of Aa setting) to use sideload fonts, it can work perfectly. So the kepubs don't need to be specified the font path.
However, if I use your method like this
@font-face {font-family: "zw"; font-weight: normal; font-style: normal; src: url('res:///fonts/normal/XXXX')} and font-family: XXXX,
it only work correctly in epubs and not in kepubs.
scoky is offline   Reply With Quote