View Single Post
Old 08-31-2011, 05:36 PM   #1
mvo
Connoisseur
mvo can extract oil from cheesemvo can extract oil from cheesemvo can extract oil from cheesemvo can extract oil from cheesemvo can extract oil from cheesemvo can extract oil from cheesemvo can extract oil from cheesemvo can extract oil from cheesemvo can extract oil from cheese
 
Posts: 57
Karma: 1214
Join Date: Jan 2011
Location: New Zealand
Device: Kindle Paperwhite 3G, Galaxy Note 2 & Note Tablet, Onyx T68
Problem embedding font into an ePub

Hi all

I would like to embed a particular font (Old Standard from http://www.thessalonica.org.ru/en/oldstandard.html) in a book.

In Sigil, Calibre, and the EPub reader add-on to Firefox, all looks fine. (Well, in Sigil and Calibre the italics don't display, but that is ok.) But in ADE, (and on my Sony Reader) the font does not show at all.

I have tried the .ttf and .otf versions of the fonts, and checked and double-checked my code in the stylesheet - see below.

The font looks fine in Word and other applications, and I can successfully embed other fonts into the ePub.

Any suggestions? Do some fonts have characteristics that make them unsuitable for embedding?

Any help much appreciated


Code:
@font-face {
  font-family: "OldStandard";
  font-weight: normal;
  font-style: normal;
  src: url(../Fonts/OldStandard-Regular.ttf);
}


@font-face {
  font-family: "OldStandard";
  font-weight: normal;
  font-style: italic;
  src: url(../Fonts/OldStandard-Italic.ttf);
}


body {
display: block;
margin-top: 0em;
margin-bottom: 0em;
margin-left: 0em;
margin-right: 0em;
font-family: "OldStandard", serif;
font-size: .90em;
text-align: justify;
widows: 1;
orphans: 1;
}
Attached Thumbnails
Click image for larger version

Name:	Fonts_image.JPG
Views:	78
Size:	11.1 KB
ID:	75940  
mvo is offline   Reply With Quote