View Single Post
Old 02-23-2013, 02:41 PM   #27
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,123
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Turtle91 View Post
<p class="specialfont">This goes at the beginning of paragraphs to which you want the special font applied.</p>

This goes in the stylesheet:
@font-face {font-family: yourFont; src: url('yourfontfile.ttf');}
p.specialfont {font-family:yourFont, cursive}

Replace:
yourFont with the name you want to use for your font
yourfontfile.ttf with the filename of your special font (.ttf/.otf, or .eot -for IE)
cursive with whatever fallback font you want to use if the reader doesn't have or support your embedded font. Make sure you surround the name with quotes if it has any spaces in it.


=======
Does that work Diap??
All that was in my sample stylesheet in post 2
theducks is offline   Reply With Quote