View Full Version : Embedding Fonts with Indesign......


brewt
01-01-2009, 03:55 PM
.....sucks.

Attached is an epub I built in Indesign with basic fonts embedded. The blurbs are from about.com.

The trick is that you need a full-fledged paragraph style defined per font to pick up the font.

Modifying an existing style with a font change does not pick up the font into the epub.

Arial, Times and Palatino are larger than 300K, so this won't open on a reader.
As it was built in Indesign, there is also DRM, so it won't open in Calibre either.

-bjc

wallcraft
01-01-2009, 04:16 PM
.Arial, Times and Palatino are larger than 300K, so this won't open on a reader.
As it was built in Indesign, there is also DRM, so it won't open in Calibre either. I don't think the Sony's have a limit on the size on an embedded font, and this certainly displays in the PRS-700 emulator (Sony's Windows ebook Reader (http://www.mobileread.com/forums/showthread.php?t=26908)). The ePub does not have DRM, but it still does not display in Calibre's Reader and it fails to import into Windows MobiPocket Reader (which tries to format shift from ePub to MOBI).

brewt
01-01-2009, 04:23 PM
There is an encryption.xml. Other IDcs4-generated epubs I've tried to open in calibre have been sited as having drm, so naturally, I assumed, since I haven't found (and thereby, not changed) any drm controls from indesign.

I've been struggling with 300+k components in epubs all darn week, and as my beloved won't let me play with her Reader today, again, I'm assuming it won't open on the reader. The Sony PC emulator opens epubs with 300+k components without a flag (hence, my struggles this week) and so I've been repeatedly thwarted with oversized css's and xhtml's.

fbreader habitually crashes on me, and I have yet to get any epubs to open in MobiCreator or Opera. Darn my luck.

This seems to open fine in DE (which also opens 300+k-componented epubs without troiuble).

-bjc

wallcraft
01-01-2009, 05:34 PM
There is an encryption.xml. Other IDcs4-generated epubs I've tried to open in calibre have been sited as having drm, so naturally, I assumed, since I haven't found (and thereby, not changed) any drm controls from indesign. The "encryption" seems to be Adobe's silly font obscuration scheme, see Adobe DE "decrypts" fonts with XOR (http://www.mobileread.com/forums/showthread.php?t=33315). I guess this is to get round font licensing issues.

kovidgoyal
01-01-2009, 09:33 PM
calibre should be able to view and convert only font encrypted epubs as of a couple of versions ago, I added support for Adobe's font encryption scheme a while back

brewt
01-01-2009, 09:42 PM
This is the traceback I get when trying to view my fabulous new Indesign-generated epub with all (10) fonts embedded:


coercing to Unicode: need string or buffer, tuple found
Detailed traceback:
Traceback (most recent call last):
File "main.py", line 520, in load_ebook
TypeError: coercing to Unicode: need string or buffer, tuple found

-bjc

kovidgoyal
01-01-2009, 11:07 PM
Open a ticket and attach one of these epubs