View Single Post
Old 04-09-2020, 09:18 AM   #2
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
It is hard to tell exactly what your problem is from the description. Also, it is possible that your e-readers do not display embedded fonts until a specific setting is made, as is necessary with Kindles.

Below are the steps I take to successfully embed fonts. Perhaps it will help you...

1) in Edit tool, import .ttf or .otf file previously downloaded from Google Fonts. Calibre will automatically put that file in its Fonts section.

2) in CSS file, add font-face rule. e.g.
@font-face {
font-family: "Lobster";
src: url(../Lobster_1.3.otf);
}

3) add font to rules e.g.
h2 {
font-size: 2em;
font-family: "Lobster", cursive;
color: #8f0bf4;
text-shadow: 2px 2px 2px #000;
}
Brett Merkey is offline   Reply With Quote