View Single Post
Old 12-06-2013, 05:13 AM   #70
tono1020
Connoisseur
tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!tono1020 rocks like Gibraltar!
 
Posts: 58
Karma: 100000
Join Date: May 2009
Location: EU
Device: Cybook (Gen3, Opus), K3, K4NT, PW, PW2, KV
Quote:
Originally Posted by NiLuJe View Post
@rogerinnyc: The fact that it works right away is a byproduct of a change in how the PW2 behaves, and only applies to KF8 content, so, ideally, the process would be:

* Put fonts in linkfonts/fonts
* KUAL > Fonts > Fonts Hack Behavior > Update fontconfig cache
* KUAL > Font Overrides > Populate this menu
* KUAL > Font Overrides > condensed > Custom > *click on wanted font*

* KUAL > Fonts > Restart KF8 reader
* Check w/ a KF8 file that it doesn't blow up

* KUAL > Fonts > Restart framework
* Check w/ a Mobi7 file that it doesn't blow up

* KUAL > Fonts > Restart X
* Check UI/Mobi7/KF8 to make sure that it doesn't blow up
* Restart device


(What's in gray are the "extra-cautious" steps that should ensure that you won't have a bad surprise at the next full reboot, and in case something does go wrong, provide an easier way to fix things over ssh, so, yeah, I *strongly* recommend people to do the initial setup with an SSH shell open).

If you have a bunch of fonts you want to test, or a bunch of custom fontconfig tweaks you want to quickly test (I'm thinking upscaling CFF fonts, for example), the fastest workflow is *do stuff* > restart KF8 reader > check KF8 file.

On a sidenote, the latest snapshots (from yesterday, I think?) should have a smarter & safer serif & sans override (mainly doesn't affect the UI, and doesn't poison the non-defaults serif/sans fonts (Baskerville, Palatino, Futura)).
Useful when you forgot to tweak a book that hardcodes the default font to the serif or sans family and you're too lazy to fix it ;p.

(I'm mentioning CFF fonts because, with the BCI freetype override, and a few tweaks [nerf the metrics for smaller line-height, fontconfig tweak to upscale them a bit (6 - 18%, depending on the font)], they look *really* good! I'm currently using a slightly tweaked Adobe Garamond Pro, and it looks gorgeous, despite being known for usually being utterly terrible on e-Ink screens).

----

I'll try to revamp the docs and push updated 'release' versions this weekend, but don't take my word for it, with finals looming ahead, my schedule is a bit chaotic.
I tried everything and still see empty custom folder (KUAL > Font Overrides > condensed > Custom).
On PW1 it work fine, but on PW2 some menus are mising: Update fontconfig cache, Font Hack Behaviour, Restart KF8 reader, Restart X, etc.
I put my custom fonts to linkfonts/fonts folder. I also tried "Rebuild this menu", "Refresh" and "Fonts->Restart the framework now".
I guess I should somehow rebuild font cache. The reason for missing menus is probably because KUAL don't recognize device: KUAL status line shows: build 20130816, a Unknown, but on PW1 there is text "Paperwhite" in status.

I will appreciate any help.

Firmware: 5.4.2
Jailbreak 1.8.N
Python 0.8.N
ScreenSaver Hack 0.15.N
Font Hack 0.6.N
KUAL 2.2
tono1020 is offline   Reply With Quote