View Single Post
Old 03-06-2012, 12:31 PM   #31
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 743
Karma: 3058207
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
Quote:
Originally Posted by sachin View Post
after providing 3 versions of fonts at the fonts folder in the book browser i did following things
-
opened a blank stylesheet (style0001.css) by right clicking on the styles folder of book browser and pasted following code

font-face {
font-family: "myfontname";
font-weight: bold;
font-style: normal;
src: url(../Fonts/myfontname-b.ttf);
}
@font-face {
font-family: "Myfontname";
font-weight: normal;
font-style: italic;
src: url(../Fonts/Myfontname-i.ttf);
}
@font-face {
font-family: "Myfontname";
font-weight: normal;
font-style: normal;
src: url(../Fonts/Myfontname-n.ttf);
}
p{
text-indent: 0;
text-align: justify;
font-size: 1em;
margin-top:0;
margin-bottom: 1em;
}
body { font-family: "Myfontname", serif; }


NOTE:"Myfontname" is actually the name of my font.

isn't it enough? what more should i do?
Names are case-sensitive, make sure you are writing filenames exactly as they are.
Pablo is offline   Reply With Quote