Thread: Kindlet Java custom font?
View Single Post
Old 10-08-2012, 05:49 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,552
Karma: 6021146
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
IIRC I did exactly that.

I think I replaced the current ones with just some other ones renamed to the same thing. That's not exactly portable but did the job for me... let me go check first.

[root@kindle root]# cd /usr/java/lib/fonts
[root@kindle fonts]# ls -al
Spoiler:
Quote:
total 41977
drwxr-xr-x 2 root root 8192 Sep 17 02:44 .
drwxr-xr-x 7 root root 1024 Sep 12 23:18 ..
-rwxr-xr-x 1 root root 3727996 Mar 3 2012 CJK.ttf
-rwxr-xr-x 1 root root 268360 Sep 17 02:21 Caecilia_LT_65_Medium.ttf
-rwxr-xr-x 1 root root 253844 Sep 17 02:21 Caecilia_LT_66_Medium_Italic.ttf
-rwxr-xr-x 1 root root 276436 Sep 17 02:21 Caecilia_LT_67_Cond_Medium.ttf
-rwxr-xr-x 1 root root 253592 Sep 17 02:21 Caecilia_LT_68_Cond_Medium_Italic.ttf
-rwxr-xr-x 1 root root 243664 Sep 17 02:21 Caecilia_LT_75_Bold.ttf
-rwxr-xr-x 1 root root 254552 Sep 17 02:21 Caecilia_LT_76_Bold_Italic.ttf
-rwxr-xr-x 1 root root 242692 Sep 17 02:21 Caecilia_LT_77_Cond_Bold.ttf
-rwxr-xr-x 1 root root 269412 Sep 17 02:21 Caecilia_LT_78_Cond_Bold_Italic.ttf
-rwxr-xr-x 1 root root 48880 Sep 14 14:34 DroidSerif-Bold.ttf
-rwxr-xr-x 1 root root 45652 Sep 14 14:34 DroidSerif-BoldItalic.ttf
-rwxr-xr-x 1 root root 40416 Sep 14 14:34 DroidSerif-Italic.ttf
-rwxr-xr-x 1 root root 43648 Sep 14 14:34 DroidSerif-Regular.ttf
-rwxr-xr-x 1 root root 3055256 Sep 17 02:21 HangulGothMTC_E.ttf
-rwxr-xr-x 1 root root 3082504 Sep 17 02:21 HangulGothMTC_E_Bold.ttf
-rwxr-xr-x 1 root root 2322776 Sep 17 02:21 HeiSeiMaruGoth213_E.ttf
-rwxr-xr-x 1 root root 2438580 Sep 17 02:21 HeiSeiMaruGoth213_E_Bold.ttf
-rwxr-xr-x 1 root root 130848 Sep 17 02:21 Helvetica_LT_65_Medium.ttf
-rwxr-xr-x 1 root root 133072 Sep 17 02:21 Helvetica_LT_66_Medium_Italic.ttf
-rwxr-xr-x 1 root root 128188 Sep 17 02:21 Helvetica_LT_75_Bold.ttf
-rwxr-xr-x 1 root root 128448 Sep 17 02:21 Helvetica_LT_76_Bold_Italic.ttf
-rwxr-xr-x 1 root root 720012 Nov 25 2011 I18N.ttf
-rwxr-xr-x 1 root root 102396 Sep 17 02:21 KindleBlackboxBold.ttf
-rwxr-xr-x 1 root root 107848 Sep 17 02:21 KindleBlackboxBoldItalic.ttf
-rwxr-xr-x 1 root root 108448 Sep 17 02:21 KindleBlackboxItalic.ttf
-rwxr-xr-x 1 root root 103512 Sep 17 02:21 KindleBlackboxRegular.ttf
-rwxr-xr-x 1 root root 102396 Sep 13 01:39 KindleBlackbox_Bold.ttf
-rwxr-xr-x 1 root root 107848 Sep 13 01:39 KindleBlackbox_BoldItalic.ttf
-rwxr-xr-x 1 root root 108448 Sep 13 01:39 KindleBlackbox_Italic.ttf
-rwxr-xr-x 1 root root 103512 Sep 13 01:39 KindleBlackbox_Regular.ttf
-rwxr-xr-x 1 root root 20968 Sep 17 02:21 Kindle_MonospacedSymbol.ttf
-rwxr-xr-x 1 root root 70316 Sep 17 02:21 Kindle_Symbol.ttf
-rwxr-xr-x 1 root root 2922236 Sep 17 02:21 MHeiM-Big5HKSCS_E.ttf
-rwxr-xr-x 1 root root 3103388 Sep 17 02:21 MHeiM-Big5HKSCS_E_Bold.ttf
-rwxr-xr-x 1 root root 3896632 Sep 17 02:21 MHeiM18030_E.ttf
-rwxr-xr-x 1 root root 3951600 Sep 17 02:21 MHeiM18030_E_Bold.ttf
-rwxr-xr-x 1 root root 303644 Sep 17 02:44 Mono_Bold.ttf
-rwxr-xr-x 1 root root 224936 Sep 17 02:44 Mono_BoldItalic.ttf
-rwxr-xr-x 1 root root 231000 Sep 17 02:44 Mono_Italic.ttf
-rwxr-xr-x 1 root root 323288 Sep 17 02:44 Mono_Regular.ttf
-rwxr-xr-x 1 root root 30980 Sep 17 02:44 Sans_Bold.ttf
-rwxr-xr-x 1 root root 24268 Sep 17 02:44 Sans_BoldItalic.ttf
-rwxr-xr-x 1 root root 28328 Sep 17 02:44 Sans_Italic.ttf
-rwxr-xr-x 1 root root 32192 Sep 17 02:44 Sans_Regular.ttf
-rwxr-xr-x 1 root root 30460 Sep 17 02:44 Serif_Bold.ttf
-rwxr-xr-x 1 root root 33508 Sep 17 02:44 Serif_BoldItalic.ttf
-rwxr-xr-x 1 root root 30636 Sep 17 02:44 Serif_Italic.ttf
-rwxr-xr-x 1 root root 30396 Sep 17 02:44 Serif_Regular.ttf
-rwxr-xr-x 1 root root 48880 Sep 14 14:34 alt-Bold.ttf
-rwxr-xr-x 1 root root 45652 Sep 14 14:34 alt-BoldItalic.ttf
-rwxr-xr-x 1 root root 40416 Sep 14 14:34 alt-Italic.ttf
-rwxr-xr-x 1 root root 43648 Sep 14 14:34 alt-Regular.ttf
-rwxr-xr-x 1 root root 8377136 Sep 17 02:21 code2000.ttf


Niluje will be able to give you the ins and outs of it all.

But I'm fairly certain I have at some point just jumped fonts in there and renamed them. I don't recall why. for the WAFs testing perhaps.

So if your question is can I dump fonts in there and not trash the system then yes. If it is will this automagically change the relevant fonts, I think you need to run a fc-cache -f -v see Nilujes comments below: and then restart.

That should do the job IIRC.

EDIT: Hmm yeah I just did this to get huge fonts on the 5 with no Hacks. (well, font ones) That's why I remember it.

Last edited by twobob; 10-08-2012 at 07:29 PM. Reason: (well, font ones)
twobob is offline   Reply With Quote