05-26-2020, 08:49 AM | #91 | |
Guru
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
I tried Georgia and Avenir are placed in the system folder usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts
These actions are no longer needed: Quote:
Checked on firmware 4.21 Actual for those who replace Avenir or Georgia, placing your font mnt/onboard/font/ folder. Fonts can be replaced using kobopatch. Last edited by Semwize; 05-26-2020 at 09:14 AM. |
|
05-26-2020, 09:35 AM | #92 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yeah, the Kobo QPA will attempt to open every font in there (and more) on startup, so this makes sense .
|
Advert | |
|
05-26-2020, 10:13 AM | #93 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I used this as the 'files' section of kobopatch.yaml. Is there something obviously wrong with it? Obviously I removed the custom fonts from the user-accessible /fonts directory before I started. [kobopatch.yaml code removed due to errors] Last edited by jackie_w; 05-26-2020 at 10:34 AM. Reason: Erroneous code removed in case anyone tried to copy it |
|
05-26-2020, 10:17 AM | #94 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@jackie_w: The second 'T' ought to be lowercase in "Trolltech" .
(EDIT: And, for future readers: case matters here (i.e., font filenames, too). This lives on a case-sensitive filesystem, unlike the USB partition). Code:
┌─(ROOT@dahlia:pts/0)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~)─┐ └─(0.32:23%:15:16:79%:#)── ls -lash /usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts ──(Tue, May 26)─┘ total 19M 3 drwxr-xr-x 2 root root 3.0K May 23 23:06 . 1 drwxr-xr-x 3 root root 1.0K May 23 23:07 .. 133 -rw-r--r-- 1 root root 132.9K May 14 14:15 Amasis-Bold.ttf 149 -rw-r--r-- 1 root root 148.5K May 14 14:15 Amasis-BoldItalic.ttf 150 -rw-r--r-- 1 root root 149.8K May 14 14:15 Amasis-Italic.ttf 126 -rw-r--r-- 1 root root 125.6K May 14 14:15 Amasis.ttf 33 -rw-r--r-- 1 root root 33.0K May 14 14:15 Avenir-Bold.ttf 30 -rw-r--r-- 1 root root 29.2K May 14 14:15 Avenir-BoldItalic.ttf 29 -rw-r--r-- 1 root root 28.5K May 14 14:15 Avenir-Italic.ttf 32 -rw-r--r-- 1 root root 31.5K May 14 14:15 Avenir.ttf 134 -rw-r--r-- 1 root root 133.1K May 14 14:15 Caecilia-Bold.ttf 131 -rw-r--r-- 1 root root 130.8K May 14 14:15 Caecilia-BoldItalic.ttf 133 -rw-r--r-- 1 root root 132.8K May 14 14:15 Caecilia-Italic.ttf 147 -rw-r--r-- 1 root root 146.0K May 14 14:15 Caecilia.ttf 33 -rw-r--r-- 1 root root 32.1K May 14 14:15 GillSans-Bold.ttf 29 -rw-r--r-- 1 root root 28.6K May 14 14:15 GillSans-BoldItalic.ttf 29 -rw-r--r-- 1 root root 28.1K May 14 14:15 GillSans-Italic.ttf 33 -rw-r--r-- 1 root root 32.7K May 14 14:15 GillSans.ttf 0 -rw-r--r-- 1 root root 0 Oct 13 2015 Gothic MB101.otf 8472 -rw-r--r-- 1 root root 8.3M May 14 14:15 KBJ-TsukuMinPr6N-RB.ttf 3811 -rw-r--r-- 1 root root 3.7M May 14 14:15 KBJ-UDKakugoPr6N-M.ttf 48 -rw-r--r-- 1 root root 47.4K May 14 14:15 KoboNickel-Bold.ttf 43 -rw-r--r-- 1 root root 42.1K May 14 14:15 KoboNickel-BoldItalic.ttf 41 -rw-r--r-- 1 root root 40.1K May 14 14:15 KoboNickel-Italic.ttf 46 -rw-r--r-- 1 root root 45.8K May 14 14:15 KoboNickel.ttf 91 -rw-r--r-- 1 root root 90.3K May 14 14:15 Malabar-Bold.ttf 82 -rw-r--r-- 1 root root 81.0K May 14 14:15 Malabar-BoldItalic.ttf 85 -rw-r--r-- 1 root root 84.5K May 14 14:15 Malabar-Italic.ttf 96 -rw-r--r-- 1 root root 95.3K May 14 14:15 Malabar.ttf 26 -rw-r--r-- 1 root root 25.1K May 14 14:15 OpenDyslexic-Bold.otf 49 -rw-r--r-- 1 root root 48.4K May 14 14:15 OpenDyslexic-BoldItalic.otf 42 -rw-r--r-- 1 root root 41.5K May 14 14:15 OpenDyslexic-Italic.otf 22 -rw-r--r-- 1 root root 21.1K May 14 14:15 OpenDyslexic-Regular.otf 0 -rw-r--r-- 1 root root 0 Oct 13 2015 Ryumin.otf 81 -rw-r--r-- 1 root root 80.1K May 14 14:15 georgia.ttf 83 -rw-r--r-- 1 root root 82.4K May 14 14:15 georgiab.ttf 72 -rw-r--r-- 1 root root 71.6K May 14 14:15 georgiai.ttf 73 -rw-r--r-- 1 root root 72.7K May 14 14:15 georgiaz.ttf 4523 -rw-r--r-- 1 root root 4.4M May 14 14:15 ub_arudjingxihei.ttf Last edited by NiLuJe; 05-26-2020 at 10:20 AM. |
05-26-2020, 10:23 AM | #95 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
Advert | |
|
05-26-2020, 10:24 AM | #96 |
Guru
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
kobopatch
Code:
files: # Fonts src/adds/Fonts/AvenirNext-Bold.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir-Bold.ttf src/adds/Fonts/AvenirNext-BoldItalic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir-BoldItalic.ttf src/adds/Fonts/AvenirNext-Italic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir-Italic.ttf src/adds/Fonts/AvenirNext-Regular.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Avenir.ttf src/adds/Fonts/georgia.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgia.ttf src/adds/Fonts/georgiab.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgiab.ttf src/adds/Fonts/georgiai.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgiai.ttf src/adds/Fonts/georgiaz.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/georgiaz.ttf Last edited by Semwize; 05-26-2020 at 10:44 AM. |
05-26-2020, 10:45 AM | #97 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@Semwize,
Good discovery! It works well when once I stopped being an idiot. I'll have a think about how to change posts #1, #2 and the summary in #63 to reflect the new info. Did you ever try this on earlier firmwares and, if so, what happened? I remember reading long ago that it didn't work, the encryption/obfuscation was mentioned. I just took this at face value and never actually tested it for myself. |
05-26-2020, 10:54 AM | #98 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@NiLuJe,
Not being a Linux user I don't know how to interact directly with the Kobo file system. Is there some way I can remove the superfluous usr/local/TrollTech directory I just created in error? I know it's easy to add files but I'm not sure how to remove them. Luckily my KA1 is only a test device these days, so no real harm done. |
05-26-2020, 10:58 AM | #99 |
Guru
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
Of course I checked, and it did not work. But I did not check firmware 4.20. Just need to ask NiLuJe which version of the firmware this made possible.
|
05-26-2020, 12:05 PM | #100 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Semwize: I wouldn't really know, I only noticed that when looking into something totally unrelated on a whim, and that was on 4.20 also .
@jackie_w: You could stick a rm -rf "/usr/local/TrollTech" in a NickelMenu command_spawn or command_output. (Taking care not to make a typo on this one, because that would be bad ^^). (Alternatively, you can also let it lie, there should be enough of a buffer of free space available in there for quite a few stray files ). |
05-26-2020, 12:51 PM | #101 | |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Speaking of space ... if someone tried to replace the 4 stock Georgia .ttf files with much bigger ttfs would you anticipate some level of risk? |
|
05-26-2020, 01:00 PM | #102 | |
Guru
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
Quote:
Code:
AvenirNext-Bold.ttf 208248 AvenirNext-BoldItalic.ttf 163572 AvenirNext-Italic.ttf 162388 AvenirNext-Regular.ttf 225696 georgia.ttf 379588 georgiab.ttf 363800 georgiai.ttf 400624 georgiaz.ttf 385768 |
|
05-26-2020, 01:13 PM | #103 |
Grand Sorcerer
Posts: 6,224
Karma: 16536676
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
05-26-2020, 01:20 PM | #104 |
Guru
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
With a large set of glyphs. Need to check.
For a dictionary, not to use a patch to change? I would not do it. The menu is configured for Georgia and Avenir. Last edited by Semwize; 05-26-2020 at 02:40 PM. |
05-26-2020, 03:32 PM | #105 |
BLAM!
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
There's (currently) ~70MB of free space in the rootfs on a stock device, you have quite a bit of leeway .
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Support for FB2 format, folders & non-Latin languages? | boren | Sony Reader | 8 | 08-08-2023 01:43 PM |
Oddball writing systems & Non-ISO 639-2 Languages | Fiat_Lux | Library Management | 0 | 10-31-2014 02:35 PM |
Fonts supported by K4 & KT | ElMiko | Amazon Kindle | 28 | 09-05-2012 04:19 PM |
Touch Ad-supported Kobo Touch? | FJames | Kobo Reader | 6 | 11-25-2011 09:26 PM |
TOPAZ & Other Languages | molochei | Kindle Developer's Corner | 1 | 06-06-2008 07:57 AM |