View Single Post
Old 02-02-2024, 05:27 PM   #1
Krytes
Enthusiast
Krytes began at the beginning.
 
Posts: 48
Karma: 24
Join Date: Jul 2008
Device: Kobo Clara BW, Boox Tab Mini C, Boox Note 2
Referencing fonts installed on Android without embedding?


Hello,
My Chinese text has fonts in two distinct styles, and I'd like to be able to replicate that in the epub. Since it's Chinese, the fonts are huge (20+ megabytes for one of them), and embedding multiple fonts isn't really practical. I tried just referring to fonts that are installed on my computer/ebook reader by name, with mixed results - the Calibre reader on Windows picked up one of the fonts but not the other, and on Android only Reasily picked up both fonts - most readers ignored both. The relevant bits from the stylesheet are here:
Quote:
.ordinary {
font-family: "FZKai-Z03";
}
.handwriting {
font-family: "YRDZST-Semibold";
}
and the text looks something like
Quote:
<p class="handwriting">
<ruby><rb class="third" onclick="toggle('我3')">我</rb><rt name="我3">wǒ</rt></ruby>
<ruby><rb class="fifth" onclick="toggle('的5')">的</rb><rt name="的5">de</rt></ruby>
<ruby><rb class="second" onclick="toggle('同2')">同</rb><rt name="同2">tóng</rt></ruby>
<ruby><rb class="first" onclick="toggle('桌1')">桌</rb><rt name="桌1">zhuō</rt></ruby>
</p>
Is there a better way to get specific Chinese fonts without embedding them, or am I just using the wrong readers?
Krytes is offline   Reply With Quote