01-06-2013, 06:45 PM | #1 |
Enthusiast
Posts: 48
Karma: 10
Join Date: Aug 2011
Device: Ipad
|
Issues embedding licensed fonts & Adobe's font permissions
Hi all!
I wanted to create a thread where we can vent our problems and successes embedding licensed fonts. I also need some help. Adobe Fonts http://www.adobe.com/type/browser/le..._licenses.html Here is a list of fonts that are marked as embeddable and editable: http://www.adobe.com/type/browser/le..._Embedding.pdf I have one font I want to work which is Myriad Pro Light. This font is in that list but still does not work. Perhaps it is deemed to be an installable font when used in ePubs which would prevent it from being used at all. Term installable explained here: http://www.adobe.com/type/browser/info/embedding.html I used the normal @font-face method CSS Code:
@font-face { font-family:"Myriad Pro Light"; font-style:normal; font-weight:300; src : url("../font/MyriadPro-Light.otf"); } h3 { color:#443f45; font-family:"Myriad Pro Light", sans-serif; font-size:2.083em; font-weight:300; line-height:1.2; font-style:normal; } Code:
<item id="MyriadPro-Light.otf" href="font/MyriadPro-Light.otf" media-type="application/vnd.ms-opentype" /> com.apple.ibooks.display-options.xml Code:
<?xml version="1.0" encoding="UTF-8"?> <display_options> <platform name="*"> <option name="specified-fonts">true</option> </platform> </display_options> Encryption file content Code:
<encryption xmlns="urn:oasis:names:tc:opendocument:xmlns:container" xmlns:enc="http://www.w3.org/2001/04/xmlenc#"> <enc:EncryptedData> <enc:EncryptionMethod Algorithm="http://www.idpf.org/2008/embedding" /> <enc:CipherData> <enc:CipherReference URI="OEBPS/font/MyriadPro-Light.otf" /> </enc:CipherData> </enc:EncryptedData> </encryption> Anyone had any luck with this font or similar situations? Grateful for any help, thanks. |
01-06-2013, 07:18 PM | #2 |
Resident Curmudgeon
Posts: 73,931
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Remove the encryption file, replace the encrypted fonts with non-encrypted versions and done.
One important note, if this eBook is going to be read on an eInk Reader, do not use Myriad Pro Light. It's too light for eInk. It will look terrible. If this is the body font (regardless of which version), it's sans-serif and again, won't look good. You cannot use font-weight: 300. It won't work. You can use font-weight: bold if you've also embedded the bold version. One thing you can do to not have to encrypt the fonts is to have Calibre subset the font and use the subsetted versions of the font. Not only does it make the eBook smaller in size, it makes the fonts useless outside of that specific eBook. Last edited by JSWolf; 01-06-2013 at 07:22 PM. |
Advert | |
|
01-06-2013, 08:24 PM | #3 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Being listed as "embeddable and/or "editable" and/or "installable" has nothing to do with whether or not the font can work (functionality-wise) when embedded in an ePub. Those various labels only deal with the legalities of doing so.
There's at least one font property (OS2 version) that if set improperly can cause the embedded font to not work in ADE renderers, but other than that ... you can get most any font (ttf or otf) to function properly when embedded. It's just a matter of whether you can legally distribute it with your ebook or not. I do know you can't just grab any font-file and slap a random encryption.xml file in the ePub and expect it to work. The encryption file is created at the same time the font-file is obfuscated and there are very specific urn id requirements in the opf file in order for ADE based readers to properly use encrypted fonts. Last edited by DiapDealer; 01-07-2013 at 09:43 AM. |
01-07-2013, 03:02 PM | #4 | |
Resident Curmudgeon
Posts: 73,931
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-07-2013, 11:10 PM | #5 | |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
JSWolf said
Quote:
|
|
Advert | |
|
01-08-2013, 10:20 PM | #6 |
Resident Curmudgeon
Posts: 73,931
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I do is take the finished ePub, load it into Calibre, convert to ePub using subsetting and then I take the font directory out of the converted ePub, replace the font directory in the finished ePub, fix the CSS/OPF as needed to match the fonts and done. Now I have an much smaller ePub with subsetted fonts. Also, don't forget to validate the finale finished ePub (I use FlightCrew) to make sure I didn't make a mistake editing the CSS/OPF (if I have to edit them).
|
01-08-2013, 11:36 PM | #7 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Ah, wonderfully easy. I haven't upgraded my Calibre for months, didn't know it could do this. Thank you for sharing.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Do I need a font license if all I'm doing is referring to the font (not embedding)? | Stodder | Workshop | 21 | 04-21-2011 04:19 AM |
Embedding fonts for epub & mobi output. | Nigel Flanagan | Conversion | 11 | 02-23-2011 02:33 PM |
Classic New Nook & Adobe Digital Editions Issues | _Lulu_ | Barnes & Noble NOOK | 16 | 07-22-2010 05:30 PM |
Embedding fonts | JaneFancher | Calibre | 14 | 04-10-2010 09:28 PM |
Embedding fonts | jash | Calibre | 2 | 09-09-2008 05:05 PM |