![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
How can i get these fonts?
I convert a .azw3 file to .epub with calibre.And i find font family nominated in stylesheet.css :
.normaltext1 { display: block; font-family: STKai, "MKai PRC", Kai; font-size: 0.83333em; text-indent: 2em; margin: 0 } So i mount fonts.cramfs.img,but cannot find these fonts:STKai, "MKai PRC", Kai.My quession is :how can i get these fonts or these fonts aren't embered in kindle paperwhite? |
![]() |
![]() |
![]() |
#2 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Which paperwhite model?
|
![]() |
![]() |
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
That's a Chinese font(楷体). When you open a Chinese book(book's language is set to Chinese, most likely your original azw3 will do the trick) kindle will download the font file. It's actually a cramfs image.
Code:
[root@kindle fonts]# ls -l -rwxrwxrwx 1 root root 41234432 Jul 6 01:29 zh-Hans.font [root@kindle fonts]# pwd /mnt/us/system/fonts |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
Quote:
STKaiBold.ttf,STKaiMedium.ttf,STYuanBold.ttf and STYuanMedium.ttf. Last edited by mcm_xciv; 09-25-2016 at 09:31 AM. |
|
![]() |
![]() |
![]() |
#6 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Does 7z (on what OS) properly handle cramfs?
You might not be getting the entire contents. Better that you just mount it as a cramfs and copy out the contents of the file system tree rather than unpack it. |
![]() |
![]() |
![]() |
#7 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 118906
Join Date: Jul 2016
Device: PW3
|
Quote:
The css lists multiple names for compatibility reasons as old kindle/firmware may use different name for the font. |
|
![]() |
![]() |
![]() |
#8 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
Quote:
Should i rename the STKaiMedium.ttf or STKaiBold.ttf to STKAI.ttf? |
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
I haven't linux on hand,so use windows platform's 7Z handle cramfs.
|
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
|
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,112
Karma: 12000224
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
The ttf files must be referenced somewhere in books CSS file(s) using @font-face rule and/or you have to know where does your preferred epub reader Android app expect to find extra/custom fonts, then copy the files there.
Or to make things simple you could embed the font files (using Calibre, first you have to add/install "STKai" font on you Windows or add them just to Calibre) epub itself, for that 1 book. I'm guessing that you Android app support embedded fonts... |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
|
![]() |
![]() |
![]() |
#13 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#14 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
|
![]() |
![]() |
![]() |
Tags |
font |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add alternate fonts without replacing system fonts.(this time this is a guide) | techiemonkey | Kindle Developer's Corner | 17 | 09-12-2012 04:55 PM |
An Observation on Fonts - Improving readability by using *bold* versions of fonts | nesler | General Discussions | 12 | 06-24-2012 12:33 PM |
need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 | hanpal | Kindle Developer's Corner | 1 | 02-20-2012 10:40 AM |
Troubleshooting need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 | hanpal | Amazon Kindle | 0 | 02-20-2012 08:51 AM |
Touch Fonts question (special characters in stock and custom fonts) | levil | Kobo Reader | 20 | 09-23-2011 01:51 PM |