Skip to main content
The Goth Editor
Known Participant
February 5, 2023
Question

How to display Adobe fonts in reflowable ePUB for end users in Kindle

  • February 5, 2023
  • 6 replies
  • 7083 views

There are multiple layers to my question. I have scoured Google for this, but no clear answer has come up about my specific situation, as most answers pertain to fixed layout epubs—and Adobe Support is rather vague. I need this explained to me in layman's terms please.

 

  1. Is there a way to display specialty (otf) fonts as they should correctly display in KDP? Removing obfuscation entirely seems to be the only way they show up in KDP (Adobe and IDPF's obfuscation does not work), and keeping obfuscation falls back to their Baskerville font.
  2. Is de-obfuscating allowable if you have an Adobe Fonts account?
  3. Is de-obfuscating end-user protected?
  4. If keeping obfuscation is the only way to go about this, is it even possible to display the font at all? If so, what component am I missing? 

 

I have seen multiple ebooks display featured fonts in Kindle without me having to download fonts to the device. Furthermore, I have seen other book formatting agencies use specialty fonts via Kindle. So, I'm wondering if leaving the font obfuscated strips the font on my end but maybe it will show in the published (purchased) version? This would be vital information to my clients, so any advice would help.

 

Some background: I format my work for my author clients with Adobe Fonts and use ID to convert my reflowable epubs to Sigil. Thank you in advance. 

 

 

6 replies

Emerald24601
Participating Frequently
February 6, 2024

https://www.epubconversion.com/epub-validator/

 

here is EPUB check 5.0.1 running online.

anything I have tried with InDesign encryption doesn't pass, or perhaps these are all warnings.... (see screenshot) but in any case it gets flagged for me so I can't use it. I was curious so I changed the obfuscation to Adobe and everything passed EPUB check. I opened the same epub (with Adobe encryption) in Kindle previewer and none of the fonts are present. It doesn't seem like In Design's obfuscation is usable at least not with the current version of epub check, though I suppose some places will let you proceed when there are warnings. 

Kindle can't read any obfuscated / encrypted fonts and will just ignore all obfuscated fonts and substitute its own. Apple Ibooks can read both Adobe obfuscation and InDesign obfuscation.

Kindle can read included fonts only if they are de-obfuscated.

James Gifford—NitroPress
Legend
February 6, 2024

Okay, this is rather circular, but...

 

I pull out the source for a book that has been successfully published on KDP (and updated a few times).

I discard the elaborate CSS file completely, so that the output is InDesign's native/raw export. The only change I make is to check "Embed Fonts."

I run this file through the original, command-line EPUBcheck v5.10. I get six "Info" level warnings for the six font faces in use... nothing else. There should be no objection to this book from any EPUB vendor.

 

But... that's after I had one oddball font used in the layout pass on its own, but create a secondary error in the XML font listing, which qualified as an "Error," enough to disqualify the book for some vendors and archives. When I swapped to a more standard font, the Error went away and I got the above result.

 

If you're not seeing the raw line output from EPUBcheck, if you're using some secondary-source online version, it's being handled/processed/filtered by that provider's wrapper, and you can't really trust that the reporting is wholly accurate. (The entire EPUB world is filled with players who "know better" and bend all the rules and tools to suit their whims... that's problem #1 with the format.)

 

So whatever is telling you "Failure" or "Failed" (which are not native EPUBcheck responses) is a modified version, and if it's giving you a fail based on Info level results, it's... wrong. On the other hand, if it's giving you Error level results because you have a bogus or nonlicensed (for e-distribution, even if encrypted) font... that's exactly what it should be doing, but the problem has nothing to do with InDesign. But the only way to know is by seeing that actual line-by-line output from the EPUBcheck 'engine,' not the interpretation or summary provided by some other layer.

 

While it's possible to make structural mistakes in InDesign, and set export options that will cause downstream problems, and even more possible to write bad CSS styling that will cause problems (and, while we're at it, for an InDesign file to have corruption that causes bad code to be exported), InDesign exports perfectly standard EPUB code that will pass even the strictest validation. I do it every day, with complex books being managed in dual-format mode.

 

I can't remember the last time a validation or acceptance fault actually traced to a problem with InDesign's export, something unfixable because ID 'did it wrong.'

 

I'd suggest that you grab the real EPUBcheck from W3C, and learn the slightly arcane process of running it as a command-line checker so that you can see its "authorized" and valid output for yourself. If there's a fault with a font, it's probably because the font is faulty or not electronically tagged for output file embedding; the only solution is to use a font that is valid or licensed. And once again, the whole practice of spec'ing and embedding fonts in reflowable EPUB is problematic, outdated and simply ignored by most readers, including Kindle... so the realy solution here is to use simple fonts in your source doc and  either not embed them, or take the extra step of stripping them to CSS base types in the CSS file.

 

It's really, really, really easy to find ways to do things badly with EPUB creation. It's fairly tough to find the one path that consistently works, across tools and time and various vendors etc., and stick to it. But you can tell which method I encourage here. 🙂

Emerald24601
Participating Frequently
February 6, 2024

right clicking the font in sigil lets you change the obfuscation. 

I could not get a validation from EPUBcheck in the current version while using the indesign encryption.

de-obfuscating the fonts in sigil allowed them to show up in kindle.

my distributor uses EPUBcheck for validation so I don't have a choice here since I don't want my book to get flagged.

something about ID obfuscation isn't valid for the latest version of EPUBcheck

James Gifford—NitroPress
Legend
February 6, 2024

something about ID obfuscation isn't valid for the latest version of EPUBcheck

 

I'll experiment to see what my results are.

 

However, you're combining at least two situations here: Kindle and some other distributor, who I assume is EPUB-based. Whether the latter is fussy about passing EPUBcheck or not, it is extremely difficult to get designated fonts working in Kindle, regardless of EPUB source or validation. There's a whole chain of issues there, but it comes down to two things:

 

A professional publisher does not submit docs with unencrypted commercial fonts, no matter how small a technical violation it might seem;

an experienced publisher does not designate fonts in either Kindle or EPUB, since the only real result is to bloat the file sizes, cause all the problems you're seeing  and have the choices undone by various readers' programming. Trying to build e-book display around print concepts is an outdated model. Both the readers (hardware and apps) and the users can and will change the font, size, spacing etc. and trying to force their choices generally leads to problems.

 

E-books should use only the base CSS file designations  —serif, sans-serif, monospaced — and neither specify font names nor embed the files.

Emerald24601
Participating Frequently
February 6, 2024

my fonts appear on kindle after de-obfuscating them using sigil. 

I also checked that there were " and not single quote in the calls.

I used an epub checker and I noticed that the version with indesign obfuscated fonts doesn't even pass epub 5.0 standards

when I de-obfuscated I passed all checks and the fonts appear in kindle.

Images of my book in kindle previewer and passing all checks after de-obfuscation

I believe the indesign obfuscation doesn't work with current epub standards, so the remaining choice is to de-obfuscate or not use fonts. ID obfuscation passed all checks through version 4.24 but everything after was non-compliant

James Gifford—NitroPress
Legend
February 6, 2024

I'll stand by what I've said in every instance of this topic: don't spec or embed fonts in EPUB. It's counterproductive in all ways. (And fonts should never be, nor ever need to be, un-encrypted for validation reasons. The process encrypts them for a reason — a fairly weak, outdated reason, but for a reason.)

 

As for validators, there's only one validation that has any value: does the file work on either Kindle or a vanilla EPUB reader like Calibre? Everything else is pretty much irrelevant, of importance only when an EPUB is built by hand and all kinds of structural mistakes can be made. InDesign EPUBs can go straight to any but one or two oddball library/sellers without any errors, regardless of whether they tick every validation point. (And there's only one validator worth using for a technical check, EPUBchecker; most others are either that wrapped in a UI or, worse, EPUBchecker wrapped in a UI that then helpfully adds the developer's own notions of what's valid or not.) I don't think I've had a validation pass tell me anything useful, good or bad, with ID exports.

 

I'm curious where you're getting 'EPUB 5.0 standards' when the turtles on the EPUB commitee seem to think v3.3 is the latest.

 

 

Emerald24601
Participating Frequently
February 6, 2024

oops the versions are versions of the epubcheck tool from w3

ID obfuscation doesn't work with the current version of the tool

that is the number of the software not epub. correct it is still 3.3

James Gifford—NitroPress
Legend
February 6, 2023

A shot in the dark, here, since you aren't very clear on where the problem occurs (or even exactly what the problem is).

 

When licensed fonts are embedded into a PDF or EPUB, they are encrypted and bound to that document so that they cannot be extracted and re-used. (Maybe this is what you mean by obfuscation.)

 

Since the encryption is tied to the document, it's possible that hacking at the doc in Sigil is breaking the connection and leaving the doc unable to decrypt the fonts on the fly, meaning it can't use them.

 

If that doesn't sound right, some more clarity on exactly what problem you're encountering, and at what point beween ID and Kindle, would help.

 

FWIW, I am strongly against editing EPUBs or workflows that depend on "fixing" an ID export using any post-export tools. If this is indeed Sigil mucking up the embedded fonts... another point to my dislike for the approach.

 

If you insist on specifying the fonts and don't want to try and fix this licensing/encryption issue at the export stage, you could substitute generic, free-license fonts in place of the Adobe ones. There are close analogues, if not more or less identical ones, for most of the common book fonts.

 

The Goth Editor
Known Participant
February 6, 2023

Just saw this! I just posted to your comment!

Legend
February 5, 2023

Adobe Fonts - the subscription service - provide only activated fonts in Windows/Mac, and web fonts via specific HTML (and on Adobe's servers). Nothing else at all. You don't receive any font files (or if you happen to find them, doing anything with them is a breach of the license). 

(I have no knowledge on the Kindle question, sorry).

BobLevine
Community Expert
Community Expert
February 5, 2023

The fonts are absolutely licensed to be embedded. Whether the reader app can take advantage of them is a whole different thing, I agree with @James Gifford—NitroPress on this...don't bother trying. Some apps may honor it for the initial display but ultimately it's the user that has control over it.

There are too many users that need to distance themselves from print and work within the rules and the spirit of the medium.

James Gifford—NitroPress
Legend
February 5, 2023

The short answer is that specifying/embedding fonts in reflowable EPUB (and thus Kindle) is a poor practice, and it often presents several technical hurdles, not all of which can be easily overcome.

 

That Adobe fonts are somewhat more tightly controlled than most, especially within the Adobe app ecosystem, doesn't help.

 

My sincere recommendation is that e-books, especially to the very closed and controlled Kindle platform, should not use specified fonts. The readers, again especially Kindle, really want full control of font, size, spacing etc. at the user's direction, and trying to impose a print-like format on this model is difficult, unreliable and contrary to the spirit of the medium.

 

The Goth Editor
Known Participant
February 5, 2023

Thanks for the advice! I am still left scratching my head, though, because it seems like it's possible, and I can't seem to find a clear-cut answer.

Willi Adelberger
Community Expert
Community Expert
February 5, 2023

As far as I know, Adobe fonts are embedded in PDFs and EPUB s and saved on the computer in a hidden folder. They get encrypted names with a leading dot to make them invisible.