View Single Post
Old 05-09-2023, 11:49 AM   #1
Spiral
Junior Member
Spiral began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2023
Device: kindle
How can I use custom fonts while not embeding them?

I want to use custom fonts by put them in the "font/" directory in kindle and not embeding them.
So I firstly write an epub3 book and transform it into azw3 to read in kindle. So I defined
Code:
@font-face { font-family:"songti"; src:
local("LXGW Wenkai Screen R"),
local("STSong");}
in my .css file and use the font in tags of xhtml.
The built-in font, "STSong", is used in a fallback way, which means the custom font "LXGW Wenkai Screen R" is not working correctly.

I think there are two possible reasons for fail:
  1. The font name is not correct
  2. I can not use the custom font the same way as use the built-in fonts, instead I have to use url to access the custom font in "fonts" directory.

Is it possible to achieve my goal? Any help is warmly welcomed!
Spiral is offline   Reply With Quote