Quote:
Originally Posted by Toxaris
Well, after you added a font to the ePUB, Sigil will put it in the manifest. However, you need to reference to the font in the stylesheet (@font-face) and to a style to actually apply it.
As long as you don't do that, it is referenced, but not used.
|
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?