![]() |
#1 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Why does the font for page numbers change?
It happens just seldom enough that I convince myself I imagined it and it's all in my head. Or that it might be something with a particular book.
But when getting the exact positioning for the miniclock that I wanted, I was taking screenshots so I could count the pixels for the next try at alignment. And on about the 10th restart with new pixel info the screenshot showed the slightly bolder page numbers, along with the old miniclock Georgia font that previously matched the page numbers. The most common font for the page numbers that I see is Georgia. I'm not sure what the bolder font is, possibly Amasis? I don't think it will ever pick out and use an extra font that I added (but I could be wrong about that). I do patch, but I don't change any of the default info within the patches, it's just changing no to yes to the defaults set up. And the nightmode and miniclock patches as well, but this has been happening long before these last 2 patches were ever a thought, and with all firmwares in the past. I'm currently using 4.10.11655. Any idea why it randomly changes the font used for the page numbers? I don't mind either font, but now with the miniclock, that means at times it won't match the page number font anymore (which I can live with for the convenience of the clock, but it's just bugging me why it's happening). You can see from the screenshots it's the same exact page of one book, so that pretty much tosses out my idea that something within a book was causing the change. Another oddity that might have something to do with it is that once in awhile after a restart from adding a patch, the formatting on the page changes slightly. See the 3rd screenshot, the font size is still the same, but the pages are shifted slightly. That happened just from adding the KoboRoot.tgz file and rebooting for the miniclock, but that has happened once in awhile long before the miniclock. At least I know I haven't been imagining it! But any ideas what's causing it and how to keep one font only for the page numbers? Or anyone else ever notice this happening? These are the patches that I've enabled. Spoiler:
|
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 913
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
Ripplinger,
is the font you have chosen to read the book. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
It's always been my understanding that, by default, the 'Page x of y' and the book title header (if switched on, used to be kepub only but now both kepub, epub) use the same font you have set to read the book.
It's such a long time since I ran using Kobi defaults that I can't confirm this at the moment. Using patching you can force the 'Page x of y' to always use a fixed font. This will help you with getting Miniclock aligned. There used to be an option to do exactly this in the standard nickel.yaml patch 'Custom reading footer style'. For some reason it went AWOL during the transition to kobopatch, but you can add it back yourself. This is the patch code I use. Append it to the bottom of your current patch. I've left in GeoffR's original comments. 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:Avenir;}\n\0"
|
![]() |
![]() |
![]() |
#4 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
I did a really close comparison and the bolder font is indeed one I that I side-loaded and use for all reading, Roboto Slab.
However, the font for the page numbers probably 95% of the time is Georgia, a Kobo system font, and not my side-loaded Roboto Slab. Just once in awhile the side-loaded font pops up after a reboot. I did probably 30 reboots at least between the various versions of the miniclock and only once did it come up with the bolder Roboto Slab side-loaded font. That randomness to it is what I find so odd. I have to run out for awhile, but I'll try your different code later this afternoon when I get back in. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
change font style of single page of html | meghane_e | Editor | 9 | 06-16-2018 04:12 PM |
Aura change page numbers kepub | daniel1591 | Kobo Developer's Corner | 10 | 05-30-2018 02:49 PM |
Kindle (AZW3/MOBI) ebooks with "real page numbers" to PDF with same page numbers? | abvgd | Conversion | 2 | 05-24-2013 01:24 PM |
Unwanted page numbers and font change | SoulStyle | Conversion | 5 | 05-21-2011 04:58 PM |
ePub - Changing Font size doesn't change page numbers | higgs | Sony Reader | 46 | 03-26-2010 02:36 PM |