View Single Post
Old 07-25-2017, 05:31 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,475
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
get rid of the , serif.

Code:
@font-face {
    font-family: "Literata";
    font-weight: normal;
    font-style:  normal;
    src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/literata-regular.otf);
}

@font-face {
    font-family: "Literata";
    font-weight: bold;
    font-style:  normal;
    src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/literata-bold.otf);
}

@font-face {
    font-family: "Literata";
    font-weight: normal;
    font-style:  italic;
    src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/literata-italic.otf);
}

@font-face {
    font-family: "Literata";
    font-weight: bold;
    font-style:  italic;
    src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/literata-bold-italic.otf);
}
3) In my "body" style I use the added font:

Code:
body {
    font-family: "Literata";
    margin: 5px, 5px, 5px, 0
}
Oh and you don't need a margin for the bottom of the screen.

Last edited by JSWolf; 07-25-2017 at 05:33 PM.
JSWolf is offline   Reply With Quote