![]() |
#1 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
![]()
Hi
![]() You'll find here the FW 5.x (KT/PW/PW2/KT2/KV/PW3/KOA/KT3/KOA2/PW4) port of the Fonts hack ![]() I say 'port', but some of it's *cough* 'inspired' *cough* from ixtab's excellent Kindle Touch Font Hack, some of it from the FontConfig KUAL extension, and most of it is based on the findings of multiple people on this forum, so, thanks everyone! NOTE: You'll need to be running at least FW 5.3.x for this to work (to avoid issues, you won't be able to install it on unsupported FW versions anyway). What Does It Do?: This will allow you to customize the fonts used by your Kindle, be it in books, or the UI, and optionally grant you deeper control over the font rendering engine. On FW 5.3.x, it serves as a wrapper around the alt fonts trick with an added layer of safety, and on FW 5.4.x, it allows you to continue using custom fonts without embedding them in each book, despite the changes in the Aa menu's behavior. Latest Updates (06/04/2019): Fonts v0.14.N (FW 5.7.x support, updated binaries). PSA: All downloads have been moved to the Snapshots thread! IMPORTANT NOTE REGARDING UPDATES: Spoiler:
INSTALL: Fonts: Spoiler:
IMPORTANT NOTES & TROUBLESHOOTING: Spoiler:
Overriding the sans family (or just Helvetica or Futura) might lead to a number of weird (and potentially 'fatal') issues, because these fonts are used in various places in the UI, and at points where the userstore might not be available. You've been warned, but it's generally a very bad idea ![]() Note that since FW 5.7.2, the situation should be much safer, because it's now Amazon Ember that's used all over the place, and not Helvetica and/or Futura ![]() On the subject of Code2000, note that it's only used as a last resort fallback. If you happen to install a custom font supporting a specific script, it will get picked up to render that script over Code2000, no matter what your fallback override is set to. On the other hand, for complex scripts, it might render with some minor to showstopping layout issues: this is what the fallback override was designed to fix ![]() ChangeLog: Spoiler:
Last edited by NiLuJe; 06-04-2019 at 01:07 PM. Reason: Bump to v0.14.N |
![]() |
![]() |
![]() |
#2 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
With the usual caveats of viewing eInk screenshots on an LCD screen, here are a few useless screenshots of the KUAL menus & the aA menu, with the BCI FreeType override.
Another note: since I'm not sure how this all behaves on anything older than FW 5.3, the update package requires FW 5.3.1, so if it mysteriously disappears from your device when you try to install it, it's because you're using an older firmware ![]() This was developed for KUAL 2.1, so make sure you have the latest version of KUAL installed ![]() A good resource for free fonts is Google's Web Fonts DB: http://www.google.com/fonts/ && https://code.google.com/p/googlefontdirectory/ (Thanks to knc1 for reminding me of that ![]() EDIT: The last screenshot illustrates the behavior of the font override feature on FW 5.4.x: Serif (Caecilia) has been overridden by Adobe Garamond Pro, and condensed (Caecilia Condensed) has been overridden by Crimson. Last edited by NiLuJe; 06-23-2014 at 06:42 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
And before someones asks:
If I don't care about default fonts overrides, and custom freetype libs, what does this do better than just using USE_ALT_FONTS manually? Well, not much, but a bit: a nicer UI via KUAL, and a saner & faster handling of cache updates & framework restarts (we never switch the rootfs rw, we only update the cache of custom fonts so it's much faster, and it's saved/restored at boot/shutdown to avoid having to rebuild it every boot [the fontconfig cache lives in a tmpfs]). Also, the KF8 reader is restarted, so the initial testing of new fonts in all kinds of content is much faster because it doesn't initially require a full restart. Speaking of, with the CJK fonts hidden, 15 custom font families is a good maximum number if you want to keep the Aa menu manageable ![]() And finally: I haven't tested the browser and/or mesquite apps, so I do not know how these will behave. AFAICT, it should just work, but the font overrides might not take there. Last edited by NiLuJe; 08-12-2013 at 05:48 PM. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Aug 2013
Device: kindle pw 5.3.6
|
I tried the BCI override, now my kindle pw at version 5.3.6 is saying Repair needed. Is it bricked? How can I fix it?
|
![]() |
![]() |
![]() |
#5 | |
(offline)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
Refer to (the second part of) this file for the required steps - but only perform the ones that you need. You don't have to overwrite neither the kernel nor the partition. And once you're done, make sure to reinstall the jailbreak bridge and the rescue pack. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Mailyfesux: Argh. What ixtab said.
What did you try, in as much details as possible, and in what order? (ie. did you have custom fonts installed, if so how many and which ones, was the fontconfig cache up to date, etc.). Also, where (when) in the boot process did it first start to go wrong, if you can tell (ie. tree, spinning circle, progress bar?) EDIT: For the record, and if you don't have the rescue pack installed, the most conservative (ie. blasting the least amount of stuff) way to recover from this would be to: 1/ Disable the hack: delete USE_ALT_FONTS and linkfonts/auto 1b/ You might want to clear the fonts directory, too. 2/ Reset the very, very annoying restart counter as described in the bottom of the page ixtab linked to. For point 2/, if you don't have the rescue pack installed, all is not lost. Every startup script I write start by looking for an 'emergency' script, for just such an occasion. The fonts hack will try to launch linkfonts/bin/emergency.sh. So just put the commands shown in ixtab's howto in there as a simple shell script (unix line endings), like so: Code:
#!/bin/sh rm -f /var/local/upstart/lab126_gui.restarts rm -f /var/run/upstart/lab126_gui.restarts # Hell, might need this too... rm -f /var/local/upstart/x.restarts rm -f /var/run/upstart/x.restarts # Hai, PW2! rm -f /var/local/upstart/mesquite.restarts rm -f /var/run/upstart/mesquite.restarts Last edited by NiLuJe; 12-08-2013 at 10:39 AM. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Aug 2013
Device: kindle pw 5.3.6
|
I went into fonts, installed about 12 fonts. updated the fontconfig cache, restarted the device, set the bci override, and then reset the device which gave the Repair Needed screen.
The repair needed screen showed up during the spinning circle I am still currently in the process of trying to unbrick it. |
![]() |
![]() |
![]() |
#8 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Mailyfesux: Assuming you were using the KUAL menu, did all the fonts work (especially in KF8 stuff) after the framework restart triggered by the fontconfig cache update?
Did you ever encounter any data corruption issue with your device? (broken books, books breaking the indexing process, your OS complaining about the filesystem when mounting the device over USB, ...) EDIT: Or, more obvious, is the userstore full/nearly full? Last edited by NiLuJe; 08-11-2013 at 03:19 PM. |
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Aug 2013
Device: kindle pw 5.3.6
|
I did not try the KF8 stuff. but the fonts I added worked. There was no previous data corruption. I dont believe the userstore was full.
I disabled the font hack via your instructions and now everything is fine. |
![]() |
![]() |
![]() |
#10 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
https://www.mobileread.com/forums/sho...d.php?t=219454 and post the text document created with your next post please? |
|
![]() |
![]() |
![]() |
#11 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Mailyfesux: Glad you got it running again, and sorry for the bad experience :/.
I'm a bit stumped as to why it would blow up like that, so If you could PM me some logs, that might help shedding some more light on this... (run ;dm from the Home page's search bar, it will dump the logs in a file named all_logs_<blahblah>.txt in the documents folder). Last edited by NiLuJe; 08-11-2013 at 04:31 PM. |
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 70690
Join Date: May 2013
Device: Kindle Paperwhite 1 & Kindle 4 Black
|
I want to get a new font to modify(override) the default fonts,what can I do to make it work with the Fonts hack?
I don't want it become"Your kindle is Repair needed" ,I am in china,it is difficult to repair it by myself. |
![]() |
![]() |
![]() |
#13 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@richy1989: Cheap quote incoming. Do or do not, there is no try.
If you do want to use it, just follow the first post, everything's in there (don't forget to install Python beforehand, the Font Override menu depends on it) ![]() If the K5 mentioned in your profile is a Touch, you'll always have Kubrick if something goes seriously wrong. |
![]() |
![]() |
![]() |
#14 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 67
Karma: 70690
Join Date: May 2013
Device: Kindle Paperwhite 1 & Kindle 4 Black
|
![]() Quote:
Let me try it! Thank you! And my device is Paperwhite, not a Touch |
|
![]() |
![]() |
![]() |
#15 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
Tags |
fontconfig, fonts, freetype, hacks, paperwhite, touch |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
K5 FW 5.x ScreenSavers Hack | NiLuJe | Kindle Developer's Corner | 3002 | 04-04-2024 09:30 AM |
[Kindle Touch] Font Hack | ixtab | Kindle Developer's Corner | 508 | 05-18-2020 12:41 PM |
Hacks Kindle Touch Registration Hack | codeisnightmare | Amazon Kindle | 15 | 10-19-2014 09:17 PM |
Touch Can I get Kindle Touch Fonts On Nook Touch? | tanteoma | Barnes & Noble NOOK | 5 | 05-17-2012 09:02 PM |
Font Hack for Kindle Touch? | Sassapphras | Kindle Developer's Corner | 1 | 02-12-2012 09:05 PM |