09-24-2016, 01:02 PM | #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? |
09-24-2016, 02:14 PM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Which paperwhite model?
|
Advert | |
|
09-24-2016, 02:31 PM | #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 |
09-25-2016, 09:17 AM | #4 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
|
09-25-2016, 09:28 AM | #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. |
|
Advert | |
|
09-25-2016, 09:48 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. |
09-25-2016, 12:50 PM | #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. |
|
09-26-2016, 01:14 AM | #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? |
|
09-26-2016, 01:50 AM | #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.
|
09-26-2016, 05:16 AM | #10 |
Addict
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
|
|
09-26-2016, 12:09 PM | #11 |
Guru
Posts: 886
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], 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... |
09-26-2016, 12:35 PM | #12 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
|
09-26-2016, 02:16 PM | #13 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
09-27-2016, 03:36 AM | #14 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2016
Device: kindle paperwhite
|
|
Tags |
font |
|
Similar Threads | ||||
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 |