Embedded fonts
I would like to be able to insert hand writing like script output in an ePub file. I downloaded the free Elegant.ttf file. I added this to the Fonts directory of my ePub file. In my stylesheet.css I added the following code:
@font-face {font-family: "Elegant"; font-style: normal; font-weight: normal; src:url("Fonts/Elegant.ttf");}
p.letter {font-family: "Elegant"; margin: 20px 40px 20px 40px; text-indent: 0; border: none; padding: 0px;}
And then I created a test file with a <p class="letter">text text text</p> in it. It does not appear as script. It appears as the normal Sigil font. What have I done wrong?
|