![]() |
#1 |
Member
![]() Posts: 17
Karma: 10
Join Date: Jan 2015
Device: iphone 6
|
Epub conversion does not embed WOFF font
My CSS rule is as follows:
Code:
@font-face { font-family: 'FontIcons'; src: url("icons.woff") format('woff'); font-weight: normal; font-style: normal; } But ebook-convert cannot find it, it shows: Code:
Failed to find fonts for family: FontIcons not embedding |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No epub readers support woff, keep your fonts in otf or ttf format.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2015
Device: many
|
ePub readers do support WOFF
I've tested it on iBooks on iPad and Mac. I'll test on Kindle HDX later.
Sigil 0.8.4 also displays the book properly with embedded woff fonts (on Mac). http://www.idpf.org/epub/30/spec/epub30-overview.html 2.8 Fonts EPUB 3 supports two closely-related font formats — OpenType [OpenType] and WOFF [WOFF] — to accommodate both traditional publishing workflows and emerging Web-based workflows. Word processing programs used to create Publications are likely to have access only to a collection of installed OpenType fonts, for example, whereas Web-archival EPUB generators will likely only have access to WOFF resources (which cannot be converted to OpenType without undesirable, and potentially unlicensed, stripping of WOFF metadata). EPUB 3 also supports both obfuscated and regular font resources for both OpenType and WOFF font formats. Support for obfuscated font resources is required to accommodate font licensing restrictions for many commercially-available fonts. |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Now find an E-Ink ereader that supports EPUB3.
Bringing EPUB3 as a proof is a bad move. It is vastly undersupported. calibre does not support EPUB3. This is by design, since it is not worth supporting useless formats. Expecting calibre to generate EPUB3-specific features during standard conversions is just asking for MASSIVE trouble in the vast, vast majority of EPUBs and ereaders. Note that the Editor will throw a warning/error, but will allow you to use whatever you want (it will in fact never do anything of its own volition, only when told). I do not hold out tremendous hope that any automated tools will provide explicit support for EPUB3 anytime soon. Last edited by eschwartz; 02-05-2015 at 03:18 PM. |
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
And Sigil embeds webkit to render previews, so it is arly surprising it supports a lot. But I assume it doesn't pass validation.
![]() I wouldn't be surprised if calibre also displays it fine, for the same reason, in the Editor preview pane, and the Ebook-Viewer. And it is STILL a horrible idea to actually do it. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2015
Device: many
|
EPUB 3 is gaining support ...
While it is not supported 100%, good level of support is there already (half full
![]() http://epubtest.org/results/ Also, Pandoc (http://johnmacfarlane.net/pandoc/epub.html) has very good support for EPUB3. I'm not sure why EPUB 3 is a 'useless format' - could you please elaborate? Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The ability for pandoc to create EPUB3 is neither here nor there.
epubtest is a pipe dream. I will be impressed when I see just one eink device anywhere that is EPUB3 compliant. It is an unwise move to cut yourself off from all the devices that don't support whichever insignificant shiny-ness of the day is being enthused about. So yes, if you are designing fixed-format/multimedia books, then by all means target iBooks as a virtual exclusivity. calibre and Sigil are not iBooks creation tools, they are ebooks creation tools. There must be an actual benefit to putting in the work to handle EPUB3. And for all your excitement about halfway support (really? ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub > Epub conversion changes font size.. why? | OllieDixon | Conversion | 2 | 03-31-2014 02:30 AM |
Keep font in conversion from ePub to PDF | freqflyer | Conversion | 1 | 05-03-2013 04:28 PM |
How to Embed a font after the ePub is created. | Adjust | ePub | 26 | 08-03-2011 01:09 AM |
embed font is too narrow - need help | NASCARaddicted | ePub | 15 | 06-06-2011 10:00 PM |
how to embed unicode font | atu1303 | LRF | 8 | 08-21-2009 10:06 PM |