View Single Post
Old 08-05-2013, 09:58 AM   #8
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Just found a workaround for having fonts included in the import.

if I have in the imported html file
Code:
<div class="hidden"><img alt="" src="Fonts/CharisSILI.ttf"/></div>
with the 'hidden' class as
Code:
.hidden {display:none;}
Then the font is included in the import and put in the Fonts folder.
You can then delete those lines from the imported file, or as they are hidden (in Sigil preview pane & calibre viewer), you could leave them.

Edit:
You need to delete those lines, as the epub will not validate with them in. - thanks @Jellby

You could also use inline style as:
Code:
<div style="display:none;"><img alt="" src="Fonts/CharisSILI.ttf"/></div>
Edit:
Found you could also just have
Code:
<img style="display:none;" alt="" src="Fonts/CharisSILI.ttf"/>

Last edited by Perkin; 08-05-2013 at 11:01 AM.
Perkin is offline   Reply With Quote