View Single Post
Old 06-16-2020, 05:02 PM   #39
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
I have several 'Font' folders with a CSS and the fonts that go with it. Some are for different appearances, but some are for special purposes

I just 'Import files' (all of them in the folder) into the epub and link the stylesheets


Code:
/* ----------------------------------------------*/
/* Style sheet to use Bookerly fonts ------------*/
/* ----------------------------------------------*/
@font-face {
  font-family: "Bookerly";
  font-weight: normal;
  font-style: normal;
  src: url(../fonts/Bookerly-Regular.ttf);
}
@font-face {
  font-family: "Bookerly";
  font-weight: bold;
  font-style: normal;
  src: url(../fonts/Bookerly-Bold.ttf);
}
@font-face {
  font-family: "Bookerly";
  font-weight: normal;
  font-style: italic;
  src: url(../fonts/Bookerly-RegularItalic.ttf);
}
@font-face {
  font-family: "Bookerly";
  font-weight: bold;
  font-style: italic;
  src: url(../fonts/Bookerly-BoldItalic.ttf);
}
body {
  font-family: "Bookerly";
}
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	263
Size:	17.2 KB
ID:	179935  
phossler is offline   Reply With Quote