View Single Post
Old 01-08-2010, 02:58 AM   #9
mfpreach
Enthusiast
mfpreach began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Jan 2010
Device: prs-300
Quote:
Originally Posted by AprilHare View Post
If you were unwilling to modify your Sony Reader though (or were using another EPUB capable device) it might be different.
I'm trying to modify a zaobao.com Calibre generated EPUB to work with Adobe Song Std - Light font (unsure if it could be distributed..)
Using following addition to CSS sheet:
@font-face {
font-weight: light;
font-style: normal;
font-family: "AdobeSongStd-Light" ;
src: url(fonts/AdobeSongStd-Light.otf) ;
}
@font-face {
font-family: "AdobeSongStd-Light";
font-weight: bold;
font-style: normal;
src: url(fonts/AdobeSongStd-Light.otf);
}
@font-face {
font-family: "AdobeSongStd-Light";
font-weight: normal;
font-style: italic;
src: url(fonts/AdobeSongStd-Light.otf);
}
@font-face {
font-family: "AdobeSongStd-Light";
font-weight: bold;
font-style: italic;
src: url(fonts/AdobeSongStd-Light.otf);
}
body {
font-family: "AdobeSongStd-Light", serif;
}

It's not working
Assuming you put the font on the root/fonts , you should have src: url(res:///Data/fonts/AdobeSongStd-Light.otf);
mfpreach is offline   Reply With Quote