View Single Post
Old 04-09-2020, 12:37 PM   #5
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: 79,961
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The following code will embed the font ChareInk. The source URL will have to be changed for where your fonts are relative to he CSS. This embeds all 4 font styles in the font family.

Code:
@font-face {
font-family:"ChareInk";
font-style: normal;
font-weight: normal;
src: url(../fonts/ChareInk-Regular.ttf);
}
@font-face {
 font-family:"ChareInk"; 
 font-style: normal; 
 font-weight: bold; 
 src: url(../fonts/ChareInk-Bold.ttf);
}
@font-face {
 font-family:"ChareInk";
 font-style: italic; 
 font-weight: normal; 
 src: url(../fonts/ChareInk-Italic.ttf);
}
@font-face {
 font-family:"CharInk"; 
 font-style: italic; 
 font-weight: bold; 
 src: url(../fonts/ChareInk-BoldItalic.ttf);
}
JSWolf is offline   Reply With Quote