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 02-12-2012, 03:44 AM   #1
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
[Kindle Touch] Font Hack

This thread concerns the Kindle Touch only, and there probably won't be any software updates anymore. If you want to change the reader fonts on a Kindle Paperwhite (FW 5.3.1 required!), see this post.

Version 1.3.2
Click image for larger version

Name:	screen1.gif
Views:	5978
Size:	12.0 KB
ID:	83381 Click image for larger version

Name:	screen2.gif
Views:	5253
Size:	16.0 KB
ID:	83382 Click image for larger version

Name:	screen3.gif
Views:	3525
Size:	22.6 KB
ID:	83383


Download fonthack-1.3.2.zip (Firmware 5.1.*) or fonthack-1.2.zip (Firmware 5.0.*) from here and install according to the README file. It's not explicitly stated in that file, but of course the Jailbreak is required before attempting installation.

There is also a bug-fixed version of the freetype library that is optional on Firmware 5.0.*, but highly recommended on Firmware 5.1.*. See this post for more information.

Links to some pre-packaged fonts can be found in the Wiki. Feel free to add links to new packages there (provided the respective fonts can be legally distributed).

A note about fonts on the Kindle Touch:
  • The Serif (S) font is what is used by default for reading books. This is also the font which is used for displaying the book titles and author names on the Home Screen.
  • The Sans Serif (SS) font is used for displaying the Menu Items. You can also select this font to read books.
  • The Condensed (C) font is only available for reading books, after selecting the appropriate entry ("condensed") in the display configuration dialog.
  • The Monospace (M) font is only shown in rare circumstances, usually when system output is displayed to the user. This includes the "System" pane of FontHack itself, but also some of the hidden shortcuts of the Kindle, or possibly a few specially formatted passages of a book that you're reading.


Source code: https://bitbucket.org/ixtab/ktfonthack


Original starting post:
Spoiler:

Hi,

since this has been asked repeatedly here, I have looked into how the fonts on the KT can be changed.

(click here to see the old screenshots).

I'm attaching the files for reference. Note that I don't recommend or condone these exact fonts. I simply chose them because they drastically differ from the default ones.

Here's what I did:
Code:
# /tmp/hack/ contains the files from the zip
mntroot rw 
mkdir /tmp/root/.fonts
cp /tmp/hack/*.ttf /tmp/root/.fonts
cp /tmp/hack/99-ixtab.conf /etc/fonts/conf.d/
cd /tmp/root/.fonts
mkfontscale
mkfontdir
fc-cache -v -f
killall cvm
I found the information from various sources, like http://wiki.mobileread.com/wiki/Kind...nd_3.x_Kindles http://charles-reace.com/Kindle_Hacks/fonts/ https://wiki.archlinux.org/index.php...complete_fonts http://www.freedesktop.org/software/...nfig-user.html to name a few.

It's pretty useful to run fc-match (sample usage: "FC_DEBUG=1025 fc-match -s sansserif") to find out what is going on.

Note that this seems to apply for the Java-based UI only. (E.g., the browser still uses the other fonts). I didn't bother to dig any deeper.

The key to the entire thing is the fontconfig .conf file. There is *a lot* that can be done in there, and I only did the bare minimum. This can certainly be improved. The sample file simply overrides the font which would normally be chosen as the preferred one with the one of the added fonts. Note that your mileage may vary, especially if you use a localized Kindle: the default font choice also depends on the locale!

Anyway... if you enjoy this kind of hack, this information is hopefully useful to get you started. Have fun!

Last edited by ixtab; 12-19-2012 at 07:13 AM.
ixtab is offline   Reply With Quote
Old 02-12-2012, 04:51 AM   #2
diba
Addict
diba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolate
 
Posts: 395
Karma: 33660
Join Date: Jul 2011
Device: Kindle 3, Kindle 4, Kindle PW, Nexus7 3G
ixtab, I see you are using periodicals now as well ;-)
diba is offline   Reply With Quote
 
Enthusiast
Old 02-12-2012, 05:14 AM   #3
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
well, I sort of had to, in order to debug the MessageFormat stuff
ixtab is offline   Reply With Quote
Old 02-12-2012, 09:36 AM   #4
victor_2203
Connoisseur
victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.victor_2203 can eat soup with a fork.
 
Posts: 64
Karma: 9056
Join Date: Nov 2009
Device: Kindle Touch
Is it possible to make a script which could be launched from the Yifanlu's GUI Launcher to make the font selection more easy? It would be great!! Be able to choose the font that you want from a visual menu.
victor_2203 is offline   Reply With Quote
Old 02-12-2012, 01:01 PM   #5
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: 4,983
Karma: 4501011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Ha, neat .

Good to know they use fontconfig more or less properly .

For those trying to figure this out, you might also want to check the fontconfig stuff in the K3 fonts hack (I went with a config a bit more intrusive, but the simple match->assign on the default font family used here is a neat idea ).

I still plan on checking this (ie. Fonts on the Touch) out in detail, as soon as they're available on the French KS... -_-".

One other thing to check: If you use a font with bigger glyphs, and a part of the UI text overruns, does it still horribly breaks the UI, or is the text cropped?

Last edited by NiLuJe; 02-12-2012 at 01:10 PM.
NiLuJe is offline   Reply With Quote
Old 02-12-2012, 01:36 PM   #6
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
I experienced issues while translating - sometimes translated stuff was too big and it was cut in "random" place (that is, in the middle of the word) and ended with "...". No UI broken, though.
JustAMan is offline   Reply With Quote
Old 02-12-2012, 01:48 PM   #7
diba
Addict
diba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolatediba is generous with chocolate
 
Posts: 395
Karma: 33660
Join Date: Jul 2011
Device: Kindle 3, Kindle 4, Kindle PW, Nexus7 3G
So still to be very careful with the lenght of expressions in translation. Some things are gonna be changed after seeing them in the buttons.
diba is offline   Reply With Quote
Old 02-12-2012, 05:42 PM   #8
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
Yup, I had to rewrite several translations up to four times until they suited my sense of wellness
JustAMan is offline   Reply With Quote
Old 02-12-2012, 08:58 PM   #9
jglerner
Connoisseur
jglerner doesn't litterjglerner doesn't litter
 
jglerner's Avatar
 
Posts: 95
Karma: 128
Join Date: Feb 2010
Location: Upside-down
Device: Kindle 3g (US), KT & PaperWhite, Nook ST
Oh... I´m dreaming again on my lovely Georgia fonts...
I´ll watch this thread daily until we can have our preferred fonts back.
Just keep us updated, please!
P l e a s e . . .
jglerner is offline   Reply With Quote
Old 02-12-2012, 09:05 PM   #10
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
I personally will probably not put much more effort into this, because I don't see a reason to change the fonts.

My post was just meant to give pointers on how to get started to other devs who are interested in this. If you want to change fonts, get your hands dirty and put some effort in it
ixtab is offline   Reply With Quote
Old 02-12-2012, 09:13 PM   #11
jglerner
Connoisseur
jglerner doesn't litterjglerner doesn't litter
 
jglerner's Avatar
 
Posts: 95
Karma: 128
Join Date: Feb 2010
Location: Upside-down
Device: Kindle 3g (US), KT & PaperWhite, Nook ST
I would be satisfied if I´d more than one choice of font like there´s on the Nook Simple Touch, I think I´m not asking too much, If BN can do it why not Amazon?
jglerner is offline   Reply With Quote
Old 02-12-2012, 09:26 PM   #12
hybernation
Enthusiast
hybernation began at the beginning.
 
Posts: 26
Karma: 38
Join Date: Jan 2008
Location: Franklin, TN USA
Device: iPad, iPhone, Kindle 2 US, Sony PR-505
Quote:
Originally Posted by jglerner View Post
Oh... I´m dreaming again on my lovely Georgia fonts...
I´ll watch this thread daily until we can have our preferred fonts back.
Just keep us updated, please!
P l e a s e . . .
I have georgia (a nice fat bold one) working on my KT.

http://www.mobileread.com/forums/sho...&postcount=163

After I fattened up the default fonts I replaced the condensed one with a Georgia I doctored up from the windows ttf file.
hybernation is offline   Reply With Quote
Old 02-13-2012, 11:28 AM   #13
jglerner
Connoisseur
jglerner doesn't litterjglerner doesn't litter
 
jglerner's Avatar
 
Posts: 95
Karma: 128
Join Date: Feb 2010
Location: Upside-down
Device: Kindle 3g (US), KT & PaperWhite, Nook ST
hybernation!

You're the best! Thanks a bunch!
jglerner is offline   Reply With Quote
Old 02-13-2012, 01:34 PM   #14
zamana
Connoisseur
zamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfoldedzamana reads XML... blindfolded
 
zamana's Avatar
 
Posts: 88
Karma: 52836
Join Date: Feb 2012
Location: São Paulo / Brazil
Device: Kindle Touch, Kindle PaperWhite, ASUS Nexus 7, LG Nexus 4
A doubt: after you apply this procedure, the stock fonts are lost?

Thanks.
zamana is offline   Reply With Quote
Old 02-13-2012, 01:40 PM   #15
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
hybernation's procedure, yes.
fontconfig procedure, no. (it was from the beginning designed to be as unintrusive as possible; it still obviously has to modify the font cache and /etc/font/conf.d directory, but both of these are easily "reversible")
ixtab is offline   Reply With Quote
Reply

Tags
kindle touch hacks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Hack for Kindle Touch? Sassapphras Kindle Developer's Corner 1 02-12-2012 09:05 PM
Kindle DXG Font Hack Help rmt Kindle Developer's Corner 0 12-05-2010 01:19 PM
Kindle DX 3G hack font 2.5.5? vebaev Kindle Developer's Corner 1 10-07-2010 06:45 PM
Hacks Kindle font hack ?? badgoodDeb Amazon Kindle 5 07-24-2009 06:18 PM
Kindle 2 Unicode Font Hack Blog Kindle Kindle Developer's Corner 14 04-15-2009 04:55 PM


All times are GMT -4. The time now is 10:55 PM.


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