Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-02-2013, 09:52 PM   #1
dereker
Junior Member
dereker began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2013
Device: k3 kpw
Help! how to use customs fonts in PW2

When I register my KPW2 in Amazon.cn and read book in Chinese. Thet push Chinese fonts for me.
I NOTICED that a file named "zh-Hans.font" was established in /system/fonts/
it can be opened by 7-zip and its type was CramFS.
it contains font file and configuration file.
I think it's useful for use custom font in PW2, but I don't know what to do next.......
dereker is offline   Reply With Quote
Old 11-02-2013, 09:54 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
same as on the PW 1 I would imagine.

rebuild a cramfs with the stuff you want in it and shove it on,

CAVEATS:
A) I have never done it
B) cramfs is readonly, so you will have to make one
C) there are threads on this for the PW1
D) I have NO idea how to activate the new fonts if you added them (note A & C above)

Hope it helps.


SEE: https://www.mobileread.com/forums/sho...44&postcount=6

Last edited by twobob; 11-02-2013 at 11:11 PM.
twobob is offline   Reply With Quote
Old 11-02-2013, 09:57 PM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by dereker View Post
When I register my KPW2 in Amazon.cn and read book in Chinese. Thet push Chinese fonts for me.
I NOTICED that a file named "zh-Hans.font" was established in /system/fonts/
it can be opened by 7-zip and its type was CramFS.
it contains font file and configuration file.
I think it's useful for use custom font in PW2, but I don't know what to do next.......
You will need the tools to create a CramFS filesystem.
Which means you will need access to a Linux system - I don't think that such tools are available for Windows.

Also - do not trust that 7-zip correctly re-created the filesystem.
Instead, just mount the CramFS image and extract the filesystem tree using cp or use an un-cramfs tool if such is available.
knc1 is offline   Reply With Quote
Old 11-02-2013, 10:39 PM   #4
dereker
Junior Member
dereker began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2013
Device: k3 kpw
Thank you for your help.
I am installing Mint 15 on virtualbox, I will try to repack it later.
dereker is offline   Reply With Quote
Old 11-02-2013, 10:48 PM   #5
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
decent choice.

probably digging up a few of those old threads would be a good move too..
twobob is offline   Reply With Quote
Old 11-02-2013, 10:56 PM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Can't remember when it's checked (ie. at boot or install) but those are manifested, so at best it won't work, at worst you'll end up with a luminous brick.

I'd strongly advise against playing with this without a shell (maybe even serial, depending how early this is setup) access.

Again, haven't bothered to look into it, but it'll probably be much easier/safer to do it the usual way (ie. fontconfig).

That, and this stuff is PW2 only, so you're on your own .

Last edited by NiLuJe; 11-02-2013 at 10:58 PM.
NiLuJe is offline   Reply With Quote
Old 11-02-2013, 11:10 PM   #7
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
ah. There you go then. Don't fiddle without root access.

Gospel.
twobob is offline   Reply With Quote
Old 11-03-2013, 08:20 AM   #8
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NiLuJe View Post
Can't remember when it's checked (ie. at boot or install) but those are manifested, so at best it won't work, at worst you'll end up with a luminous brick.

I'd strongly advise against playing with this without a shell (maybe even serial, depending how early this is setup) access.

Again, haven't bothered to look into it, but it'll probably be much easier/safer to do it the usual way (ie. fontconfig).

That, and this stuff is PW2 only, so you're on your own .
Ah - good advice.

Since at the moment the only way to jailbreak a pw2 is via the serial port - I had assumed that the poster already had serial port access.
knc1 is offline   Reply With Quote
Old 11-04-2013, 05:12 AM   #9
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
PW1 and 2 do not have all the fonts on them? and they download them as necessary? what happens if you put a chinese book on a kindle that is not registered for the chinese store?
zxczxc is offline   Reply With Quote
Old 11-06-2013, 04:27 AM   #10
hontehai
Member
hontehai began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Dec 2010
Device: Kindle Paperwhite 2
Quote:
Originally Posted by dereker View Post
When I register my KPW2 in Amazon.cn and read book in Chinese. Thet push Chinese fonts for me.
I NOTICED that a file named "zh-Hans.font" was established in /system/fonts/
it can be opened by 7-zip and its type was CramFS.
it contains font file and configuration file.
I think it's useful for use custom font in PW2, but I don't know what to do next.......
Can you upload file "zh-Hans.font" for study ?
Thanks
hontehai is offline   Reply With Quote
Old 11-06-2013, 05:09 AM   #11
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Please ensure that this is NOT a copyrighted font before you upload it.

Thanks,
HarryT is offline   Reply With Quote
Old 11-06-2013, 04:45 PM   #12
dosimple
Junior Member
dosimple began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2013
Device: K3, PW2
Quote:
Originally Posted by knc1 View Post
You will need the tools to create a CramFS filesystem.
Which means you will need access to a Linux system - I don't think that such tools are available for Windows.
Windows users could use cramfs tools in cygwin, there seems to be one available.
dosimple is offline   Reply With Quote
Old 11-06-2013, 08:21 PM   #13
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
They could.

http://prabhur.wordpress.com/2009/04...s-environment/

However it is worth reiterating that in this context adjusting said cramfs image would be a

"Bad Idea" ™
https://www.mobileread.com/forums/sho...44&postcount=6
twobob is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which one are you ordering: PW2 wifi or PW2 3G jocampo Amazon Kindle 37 08-18-2014 10:48 AM
Customs cost estimation for overseas ereader sneakyspider Which one should I buy? 6 05-22-2013 10:30 AM
Classic What's Customs playing at?? afa Barnes & Noble NOOK 11 07-05-2010 02:47 AM
Oberon Design and Customs in the UK EQ2 Sony Reader 0 12-25-2009 04:01 PM
Question about amount of Customs duty for iliad in US harpum iRex 8 01-05-2007 12:24 AM


All times are GMT -4. The time now is 08:24 PM.


MobileRead.com is a privately owned, operated and funded community.