![]() |
#16 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 230
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
|
Quote:
Here is the end of the log file. Let me know if you need more. Spoiler:
|
|
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,137
Karma: 16059044
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Code:
# Customise one or more of the 3 Replace values below as required # Touch/Mini/Touch2/Glo/Aura/Aura2/Nia # N.B. Touch/Mini/Touch2 could be reduced to 57 with no ill effects - {Find: "footerMargin: 105;", Replace: "footerMargin:64;"} # AuraHD/AuraH2O/AuraH2O2/GloHD/ClaraHD/LibraH2O/Libra2 # N.B. AuraH2O/AuraH2O2/GloHD/ClaraHD could be reduced to 102 with no ill effects - {Find: "footerMargin: 170;", Replace: "footerMargin:116;"} # AuraOne/Forma/Sage/Elipsa - {Find: "footerMargin: 221;", Replace: "footerMargin:133;"} Code:
Find: "footerMargin:106;" |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 230
Karma: 27924
Join Date: Oct 2009
Location: Chicago, IL USA
Device: Sony PRS-350; Kobo Clara HD; Kobo Clara 2E
|
Quote:
Ah, the ol' "problem lies between the chair and the keyboard" solution. Thanks, Jackie -- for this and all your work on the patches. ![]() |
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,137
Karma: 16059044
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
![]() |
![]() |
![]() |
#20 | |
Member
![]() Posts: 15
Karma: 10
Join Date: Oct 2020
Location: Saskatoon, SK, Canada
Device: Kobo Clara HD
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Oct 2021
Device: kobo glo hd
|
Help me! cant use "Un-Force user font-family in KePubs".
But in 4.31 its correct! |
![]() |
![]() |
![]() |
#22 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,011
Karma: 135224257
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#23 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Oct 2021
Device: kobo glo hd
|
Quote:
log.txt libnickel.so.1.0.0.rar Here is my modification of Un-Force user font-family: Un-Force user font-family in KePubs: - Enabled: yes - Description: | The KePub reader uses a very heavy-handed method of setting the font selected by the user, overriding all fonts set by the publisher in the book unless "Publisher Default" is selected. This patch lets the font-family set by the publisher in the KePub stylesheet override the font-family selected by the reader from the device in some cases, which allows a mix of user-selected and publisher-selected fonts. Alternatives 1-3 give increasing preference to the publisher-selected fonts. - FindBaseAddressString: "* { font-family: %1 !important; }\n" # # Alternative 1: # * { font-family: %1 !important; }\n # --> div,p{font-family:%1!important; }\n # - ReplaceString: # Find: "* { font-family: %1 !important; }\n" # Replace: "div,p{font-family:%1!important; }\n" # MustMatchLength: yes # # Alternative 2: (Similar to ePub default) # * { font-family: %1 !important; }\n # --> body,p{font-family:%1!important;}\n # - ReplaceString: # Offset: 0 # Find: "* { font-family: %1 !important; }\n" # Replace: "body,p{font-family:%1!important;}\n" # MustMatchLength: yes # # Alternative 3: (similar to ePub with `Un-force font-family override p tags`) # * { font-family: %1 !important; }\n # --> body{font-family:%1 !important; }\n - ReplaceString: Offset: 0 Find: "* { font-family: %1 !important; }\n" Replace: "body{font-family:%1 !important; }\n" MustMatchLength: yes Now I am back to 4.31 firmware,same patch,it's correct。 THX for your help! Last edited by jesson345; 04-19-2022 at 10:25 PM. |
|
![]() |
![]() |
![]() |
#24 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,011
Karma: 135224257
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Oct 2021
Device: kobo glo hd
|
Quote:
See below: |
|
![]() |
![]() |
![]() |
#26 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,011
Karma: 135224257
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#27 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Oct 2021
Device: kobo glo hd
|
Quote:
I'll try to find Eng. ebook which support multi-font style sheet。 Chinese ebooks I already own need side-loaded chinese fonts,That's hard to achieve multi-font。 |
|
![]() |
![]() |
![]() |
#28 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72,463
Karma: 125182049
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#29 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2013
Device: Kobo Glo HD, Kobo Sage
|
I can confirm jesson345's findings. But the issue affects only kepubs. Up until 4.31, both were OK even without applying the patch.
Last edited by Acopdegarrotix; 04-20-2022 at 08:44 AM. Reason: Fonts set to Publisher Default |
![]() |
![]() |
![]() |
#30 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,137
Karma: 16059044
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I believe the font problems you are seeing in your screenshots are due to the major changes Kobo have made to font handling. This has particularly affected certain kepubs where some convenient undocumented "font tricks", which used to work pre-4.32, no longer do. I know this because ~50% of the kepubs loaded on my own Kobos are affected by this change. If you understand HTML/CSS the following info may be of interest. ------------------------------------------- Some general background pre-4.32 ... The official standard way to make your book display fonts referenced by name (e.g. font-family: "My Special Fontname") in the epub/kepub's internal CSS is to embed all those named fonts into the book and include matching @font-face statements in the CSS to link the font to the relevant embedded .ttf or .otf file. As long as you've done it correctly it will work in Kobo epubs and kepubs with a caveat for kepubs:
Fortunately, for kepub users, there *was* an easier way pre-4.32. I've never seen it documented as a supported feature, so maybe it was just a "happy accident". You didn't need to embed any font files or add any @font-face statements to CSS. If the kepub internal CSS contained any style Code:
font-family: "My Special Fontname"; Fw 4.32 onwards ... Unfortunately this kepub undocumented feature no longer works. I have no idea whether it is due to collateral damage from all the font-related changes in fw 4.32 or a deliberate removal of some old code. Selecting a sideloaded font from the [Aa] font menu should still work in the same way it always has done for the main body text in kepubs. ------------------------------------------- What can you do about it? I don't think there is a painless answer unless Kobo see the current situation as a bug (unlikely, but you never know) and "fix" it in a future fw. Special named fonts (e.g. for fancy headings, dropcaps, monospace, true small-caps, ...) will need to be embedded to be visible in kepubs. Last edited by jackie_w; 04-20-2022 at 09:37 AM. Reason: typo |
|
![]() |
![]() |
![]() |
Tags |
kobopatch, patch, patch32lsb, patches, patching |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 07:15 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 06:35 PM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 04:40 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 10:22 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 11:06 AM |