View Full Version : Embedded fonts not always visible


James_Wilde
12-12-2010, 06:48 PM
I have a file with embedded fonts - just one font, Times New Roman italic in fact. I use it for words in a foreign language, which, since they are in a foreign language, are in italics. The font file includes a great many accents above and below vowels, of which I use four.

These appear without problem in the original OpenOffice file, in pdf format, in Calibre, in Sigil, in Stanza. But not in Adobe DME.

They appear in my Iriver, but not in the Sony 950, nor the Aluratek Libre Pro.

Any comments? Are embedded fonts a known problem in epub files?

Adjust
12-12-2010, 06:56 PM
Font embedding is really hit and miss (ibooks, for example DO NOT support font embedding)

frabjous
12-12-2010, 11:37 PM
What Adjust says is true, but still, a few of those should support it. Can you post the CSS you're using inside the ePub?

Also, you might want to note that you probably don't have the legal rights to distribute Times New Roman, unless you're paying for the right to do so. Consider using an open/free license Times clone like TeX Gyre Termes, FreeSerif or Nimbus Roman No9 L (or a completely different font).

James_Wilde
12-13-2010, 03:55 AM
Solved. I forgot the font clause in css. :o I assumed sigil would add that clause when I added the fonts.

Thanks for the tip Frabjous. I'll look at those fonts. Where would I get them for the Mac?

pholy
12-13-2010, 09:03 AM
Here (http://www.gust.org.pl/projects/e-foundry/tex-gyre/) is the page for all the TEX Gyre fonts. Read about them and then go to the font page you want and dl the OTF font collection. They are the same for Mac, Windows, and Linux.

Google is your friend... :)

James_Wilde
12-13-2010, 02:11 PM
Thanks, Pholy. I did eventually find (with my friend Google!) the FreeSerif fonts. I also found the Tex Gyre fonts, which gave an error message on my Mac. And the Nimbus fonts, which everybody I found wanted money for.

pholy
12-13-2010, 02:59 PM
Curious... I just installed all the Tex Gyre fonts using FontBook, and verified the Termes Regular. I'm using 10.6.5, in case that makes a difference. I'll keep them for embedding in my epubs.

frabjous
12-13-2010, 03:21 PM
Thanks, Pholy. I did eventually find (with my friend Google!) the FreeSerif fonts. I also found the Tex Gyre fonts, which gave an error message on my Mac. And the Nimbus fonts, which everybody I found wanted money for.

Nimbus Roman No9 L is one of the standard Ghostscript fonts and comes free with Ghostscript. You can for example download it here (http://sourceforge.net/projects/gs-fonts/) for free as part of a bundle. However, it typically comes as a Type-1 font, which is probably less convenient. (You could convert it to .ttf, but it might be a pain.) I thought someone was distributing the ghostscript fonts for free as .ttf files somewhere but I cannot find the webpage now.

Not sure why TeX Gyre Termes didn't work for you.

Another option for a free-license Times clone would be the very comprehensive STIX fonts (http://www.stixfonts.org/), though they're probably overkill and may increase the size of your file more than it's worth it.

But if FreeSerif works, then it's not a problem!

Freeshadow
12-13-2010, 10:40 PM
there are various threads with freefont links here on MR
search for "Libertine" and "SIL"

James_Wilde
12-14-2010, 03:53 AM
Not sure why TeX Gyre Termes didn't work for you.

But if FreeSerif works, then it's not a problem!

TeX Gyre came up with a message about certain symbols having one hex code but should have another. In fact, so did FreeSerif fonts, but only for symbols that I don't use, so I tested them.

And whatever I did, I couldn't find a way for the FreeSerif fonts not to eat up part of the line above, so in the end I decided to go back to TNR and hope Microsoft don't sue me. I'll just put 95% of my earnings in escrow for a few years, just in case...

frabjous
12-14-2010, 01:39 PM
Funny. These are pretty heavily tested fonts. Exactly what software is reporting these errors?

Are you using a special character encoding for the files in the ePub? I would suggest Unicode/UTF-8.

Freeshadow
12-14-2010, 01:59 PM
well as TNR replacement for print I'd recommend Linux Libertine". being AFAIR very carefully sized
for ereader I use Gentium Book now (slightly bolder

James_Wilde
12-15-2010, 09:45 AM
Funny. These are pretty heavily tested fonts. Exactly what software is reporting these errors?

Are you using a special character encoding for the files in the ePub? I would suggest Unicode/UTF-8.

It was Fontforge that gave me the message. No special character encoding. Most - if not all - of what I do is Mac normal, which means UTF-8.

I'll see if I still have the FreeSerif files and test again with a detailed error message.

"The glyph named mu is mapped to U+00B5.
But its name indicates it should be mapped to U+03BC"
plus 3 others, 2 for tcommaaccent and 1 for Delta.

As I say, I don't use mu, Delta and tcommaaccent, so I tested. I got the impression that the font included white space around the font, and that it was this that encroached on the line above.

James_Wilde
12-15-2010, 09:46 AM
well as TNR replacement for print I'd recommend Linux Libertine". being AFAIR very carefully sized
for ereader I use Gentium Book now (slightly bolder

Thanks, Freeshadow:

Linux Libertine - sounds like I could use that on my Ubuntu box, but how would it work on the Mac?

frabjous
12-15-2010, 12:58 PM
I wouldn't worry about those errors in fontforge, though if you're not seeing what you want to be seeing when you test, that's a bigger issue, though it seems unrelated. I wonder if you could create a sample document to upload here. I'm curious what the issue might be. Are you converting to another format with fontforge?

Linux Libertine works on any operating system -- or should. (Of course, I thought that about my other suggestions too!)

It's not a Times clone, though it is similar kind of font. I would have suggested it myself, but I thought you had your heart set on a true Times clone.

More info here: the Libertine fonts project (http://linuxlibertine.sourceforge.net/Libertine-EN.html).

Freeshadow
12-15-2010, 01:19 PM
@James Wilde
Theiy are just plain otfs do not get misguided by the name - just as frabjous said.
I use it now as a TNR replacement (even in apps not supporting the all the OpenType extra features) because it really looks better in print. for readers I prefer gentium book now.