View Single Post
Old 03-06-2012, 06:36 AM   #30
sachin began at the beginning.
sachin's Avatar
Posts: 31
Karma: 20
Join Date: Feb 2012
Location: Bengaluru, India
Device: none
embedding font

Originally Posted by Toxaris View Post
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);
text-indent: 0;
text-align: justify;
font-size: 1em;
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?
sachin is offline   Reply With Quote