View Single Post
Old 01-20-2019, 04:55 PM   #2
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,255
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by price View Post
Hi, I want to modify the footer font family, but the code relating to this is missing in patches released recently.
Why this happens? Is it possible to modify the font family in the new-redeased firmwares?
I don't know why this option is no longer included. My guess is copy/paste error (rather than a deliberate removal) when the patching system moved to kobopatch

You can always add it back yourself to the end of the 'Custom reading footer style' patch in nickel.yaml. Something like the following, but change the red bit to your font of choice and be careful with the indentation:
Code:
  # Uncomment the replace_string line below to use a fixed replacement caption
  # font family, for all devices: You can change Georgia to another font name of
  # your choice, but Avenir or Georgia are recommended because other fonts might
  # not be loaded when the book is first opened and so might cause problems.
  # Unlike other strings it is OK if this replacement string is a bit longer or
  # shorter than the original.
  #
  - ReplaceString:
      Offset: 514
      Find:    "#caption[qApp_localeName=\"ja_JP\"] {font-family:Sans-SerifJP,sans-serif;font-style:normal}\n"
      Replace: "#caption {font-family:Georgia;}\n\0"
jackie_w is offline   Reply With Quote