View Single Post
Old 05-23-2019, 03:40 AM   #2
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
I think I've figured it out; I need to have the font-family always be Bitter; e.g.

Code:
@font-face {
    font-family: Bitter;
    font-weight: normal;
    font-style: normal;
    src:url(../Fonts/Bitter-Regular.otf);
}

@font-face {
    font-family: Bitter;
    font-weight: bold;
    font-style: normal;
    src:url(../Fonts/Bitter-Bold.otf);
}

@font-face {
    font-family: Bitter;
    font-weight: normal;
    font-style: italic;
    src:url(../Fonts/Bitter-Italic.otf);
}

@font-face {
    font-family: Bitter;
    font-weight: bold;
    font-style: italic;
    src:url(../Fonts/Bitter-BoldItalic.otf);
}
Then my css only needs to be

Code:
body {
    font-family: "Bitter", serif;
}

strong, b {
    font-weight: bold;
}

em, i {
    font-style: italic;
}
And I can remove the font-family from the h1, h2, h3.
lumpynose is offline   Reply With Quote