View Single Post
Old 04-15-2014, 07:20 AM   #8
8140david
Connoisseur
8140david began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Mar 2014
Device: none
Thanks.

I've followed these instructions for adding a font to an epub in Sigil:
http://web.sigil.googlecode.com/git/...bed_fonts.html

I've added the font using Sigil (option 'add from existing file' when right clicking on Fonts on the left pannel).

I have defined the font in the stylesheet "style001.css" as indicated, eg:
/* normal case */
@font-face {
font-family: 'DejaVuSans';
src: local(‘☺’), url('../Fonts/DejaVuSans.ttf') format('truetype');
}

And I have defined a class for that font in the stylesheet:
.deja
{
font-family: 'DejaVuSans', sans-serif;
font-weight: normal;
font-style: normal;
}

Each html page of the epub is linked to the stylesheet with:
<head>
<link href="../Styles/style001.css" rel="stylesheet" type="text/css"/>
<title></title>
</head>

I invoke the class deja in the body:
<span class="deja">∃</span>
Indeed, I just want to use the font for the mathematical symbols, not for the rest of the text.

But when I check my epub for W3C compliancy in Sigil, it keeps telling me that the font is unused.

What should I do?
I've looked at many pages by googling, but I don't understand what I'm doing wrong, and nothing is detailed enough to help me on this particular issue.

Last edited by 8140david; 04-15-2014 at 07:32 AM.
8140david is offline   Reply With Quote