Thread: Embedded fonts
View Single Post
Old 11-10-2011, 01:25 PM   #10
dicknskip
Zealot
dicknskip began at the beginning.
 
Posts: 134
Karma: 10
Join Date: Nov 2009
Location: Okotoks, AB, Canada
Device: iPad V-3
OK - I got this to work on Calibre's ebook-viewer and in Sigil. As soon as I move it through Calibre to my PRS-505 the script is gone and I get a serif font in very small type.

Here is the css code:

@font-face {font-family: "Elegante, Regular"; font-style: normal; font-weight: normal; src:url("res:///Fonts/elegital.ttf");}

I didn't like how light the other font was so I changed to Elegante.

When I save the epub and then open it again in Sigil the res"///Fonts gets changed to ../Fonts

The definition of class letter is:

p.letter {font-family: "Elegante, Regular"; font-size:65%; line-height:225%; margin: 20px 40px 20px 40px; text-indent: 0; border: none; padding: 0px;}

I have a couple of lines of text defined as <p class="letter">. In Sigil it is in Elegante script. In the ebook-viewer it is Elegante script. On the PRS-505 it is the default serif font, but very small, this is due to the font-size and line-height in the css.

Can anyone see what I'm doing wrong here?
dicknskip is offline   Reply With Quote