View Single Post
Old 08-02-2018, 11:01 PM   #490
HowlerX
Enthusiast
HowlerX began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Aug 2016
Device: Kindle Voyage
Quote:
Originally Posted by SmithM View Post


It works fine when I embed the fonts in epub file.
I'm assuming you are going to be reading this on a Kindle e-ink device or a tablet or phone with the Kindle app installed. Since all the devices and apps mentioned have all 4 fonts you've declared, there is no need to use "font-face" declarations. If you want Kindle devices to force the use of a particular font, this is what I've found works (using your css stylesheet as a starting point):
Code:
.baskerville {
	font-family: "Baskerville", serif;
}
.opendyslexic {
	font-family: "OpenDyslexic", serif;
}
.bookerly {
	font-family: "Bookerly", serif;
}
.helvetica {
	font-family: "Helvetica Neue LT", sans-serif;
}
Not sure why you have to use "Helvetica Neue LT" myself. I'm assuming it's because the Kindle App on iOS uses that particular variant of Helvetica. I tested it on your sample converted to KFX and loaded it on my Kindle and it displays as intended. Hope this helps.
HowlerX is offline   Reply With Quote