Thread: Embedded fonts
View Single Post
Old 11-08-2011, 11:52 AM   #1
dicknskip
Zealot
dicknskip began at the beginning.
 
Posts: 110
Karma: 10
Join Date: Nov 2009
Location: Okotoks, AB, Canada
Device: iPad V-3
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?
dicknskip is offline   Reply With Quote