View Single Post
Old 01-11-2020, 04:42 PM   #431
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by LucyOne View Post
About changing the Back to Home/My Books in the reading menu, which I mentioned in the patching thread: I would like to be able to change the font, since I also changed it in the header, footer and scrubber. I hope that is possible. At least, I would like to make the style normal, not bold.
Yes, this should be possible. Customise as you see fit and please report back.
Code:
Customise Header back label:
  - Enabled: no
  - Description: |
        Customise in-book button (top left corner) for 'Back to Home', 'Back to My Books' etc
  - FindZlib: "#ReadingMenuView"
  - ReplaceZlibGroup:
      Replacements:
        # 'Back to Home' button un-bolded
        - Find:    "#backLabel #label {\n  font-family: Avenir;\n  font-style: normal;\n  font-weight: bold;"
          Replace: "#backLabel #label {\n  font-family:Avenir;\n  font-style:normal;\n  font-weight:normal;"
Quote:
Originally Posted by LucyOne View Post
Would it also be possible to change the font for the page numbers in the header and footer? It would look better if it was the same s for the book and chapter title.
@LucyOne, Ripplinger,

I tried everything I could think of to do this by customising existing nickel CSS. I came to the conclusion that the code that handles the right-hand text (page numbers, %, time remaining) must have been moved out of the nickel GUI CSS we normally use for patching. It's somewhere deeper in the firmware code. Wherever Kobo have hidden it, it's now out of my reach ... unless geek1011 has some bright ideas ...

There is a way to make the left/right halves of header/footer match but it's not a kobopatch and you may not wish to go this far.

You can do it by overriding the built-in 'Avenir Next' system font throughout the whole GUI. It requires you to:
  • Choose any custom font (4 files regular, italic, bold, bolditalic)
  • Use a font editor (e.g. FontForge, TTFEdit) to change the internal fontname from whatever to Avenir Next in all 4 files
  • Change the external filenames to Avenir Next.ttf, Avenir Next-Italic.ttf, etc
  • Sideload the 4 files to /fonts like any other sideloaded font
  • Reboot the Kobo
It's still not a perfect solution because immediately after any full reboot the Kobo will use the built-in 'Avenir Next' rather than your sideloaded version. You need to force the Kobo to load it's sideloaded fonts. There are some tips in post #2 of this thread. Once your sideloaded font has been accessed it will remain available until the next reboot, i.e. it will survive Sleep mode.
jackie_w is offline   Reply With Quote