Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-06-2013, 07:45 PM   #1
FunkeXMix
Enthusiast
FunkeXMix began at the beginning.
 
Posts: 39
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;
	 }
content.opf contains

Code:
<item id="MyriadPro-Light.otf" href="font/MyriadPro-Light.otf" media-type="application/vnd.ms-opentype" />
META-INF folder contains file specific to enable embedded fonts in iBooks

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>
I also have a encryption file that I THINK came from when I exported to ePub from Indesign in the beginning of my production. I am guessing this is causing the issue, I will play with it more tomorrow.

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.
FunkeXMix is offline   Reply With Quote
Old 01-06-2013, 08:18 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,689
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
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 08:22 PM.
JSWolf is offline   Reply With Quote
Old 01-06-2013, 09:24 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,554
Karma: 44291176
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 10:43 AM.
DiapDealer is online now   Reply With Quote
Old 01-07-2013, 04:02 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,689
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by DiapDealer View Post
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.
One thing that might work (but it's up to the owner of the font(s) is to subset the font(s). That way, you are not distributing an ePub with a full font file. What you are distributing is a font file with just the characters needed for that specific ePub. So say your ePub does not use the letter Q, the resulting font file will not have a Q in it. Not only does subsetting make the font file much smaller, it makes the font file not worth taking as it's not complete.
JSWolf is offline   Reply With Quote
Old 01-08-2013, 12:10 AM   #5
GrannyGrump
Persnickity Nitpicker
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 575
Karma: 2673216
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
JSWolf said
Quote:
have Calibre subset the font and use the subsetted versions of the font.
Please give details of how this is done. Thanks.
GrannyGrump is offline   Reply With Quote
Old 01-08-2013, 11:20 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,689
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by grannyGrumpy View Post
JSWolf said


Please give details of how this is done. Thanks.
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).
JSWolf is offline   Reply With Quote
Old 01-09-2013, 12:36 AM   #7
GrannyGrump
Persnickity Nitpicker
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 575
Karma: 2673216
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.
GrannyGrump is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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 05:19 AM
Embedding fonts for epub & mobi output. Nigel Flanagan Conversion 11 02-23-2011 03:33 PM
Classic New Nook & Adobe Digital Editions Issues _Lulu_ Barnes & Noble NOOK 16 07-22-2010 06:30 PM
Embedding fonts JaneFancher Calibre 14 04-10-2010 10:28 PM
Embedding fonts jash Calibre 2 09-09-2008 06:05 PM


All times are GMT -4. The time now is 07:36 AM.


MobileRead.com is a privately owned, operated and funded community.