Okay, all you smart people...there's still a problem with my fonts. I'm taking my html code into Calibre to create basic epub file. Nothing special done, just straight conversion, adding meta and cover. Looks good in Calibre, epub reader and MobiPocket. I bring that epub file up in Sigil and add the fonts and @font code as follows:
@namespace h "http://www.w3.org/1999/xhtml"; (first line in Style.css as constructed by Calibre)
@font-face {
font-family: "Vivaldi", cursive;
font-style: normal;
font-weight: normal;
src:url(../Fonts/Vivaldii.TTF) format(opentype);;
}
@font-face {
font-family: "Trajan Pro", serif;
font-style: normal;
font-weight: normal;
src:url(../Fonts/TrajanPro-Bold.otf) format(opentype);;
}
@font-face {
font-family: "HansonsHand", sans-serif;
font-style: normal;
font-weight: normal;
src:url(../Fonts/HANSON-H.TTF) format(opentype);;
}
@font-face {
font-family: "Schwarzwald", sans-serif;
font-style: normal;
font-weight: normal;
src:url(../Fonts/SCHWARZW.TTF) format(opentype);;
}
@font-face {
font-family: "BankGothic Md BT", sans-serif;
font-style: normal;
font-weight: normal;
src:url(../Fonts/BNKGOTHM.TTF) format(opentype);;
}
@font-face {
font-family: "Brush Script MT Italic", cursive;
font-style: normal;
font-weight: normal;
src:url(../Fonts/BRUSHSCI.TTF) format(opentype);;
}
Returning to Calibre code
.calibre {
display: block;
font-family: "Times New Roman", serif;
font-size: 1em;
font-style: normal;
font-weight: normal;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
page-break-before: always;
text-align: justify
}
After the code is added, the file is imported back into Calibre and the default font is suddenly huge. Also, the special fonts don't show.
File looks good, proper default font with special fonts showing, in the other two readers I have.
Anybody?
|