Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-08-2018, 11:21 AM   #1
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
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:
Code:
overrides:
  src/nickel.yaml:
    Show all games: yes
    Remove recommendations (row1col2) from home screen: no
    Custom reading footer style: yes
    Dictionary pop-up - increase available text area: yes
    Increase the cover size in library: yes
    Increase the view details container size: yes
    Remove footer (row3) and increase cover size on new home screen: yes
  src/libadobe.so.yaml:
  src/libnickel.so.1.0.0.yaml:
    My 24 line spacing values: yes
    Custom left & right margins: yes
    Custom font sizes: yes
    Freedom to advanced fonts control: yes
    ePub fixed/adjustable top/bottom margins: no
    Custom kepub default margins: yes
    Custom footer (page number text): yes
    Fix three KePub fullScreenReading bugs: yes
    Force user line spacing in KePubs: yes
    Force user line spacing in ePubs (part 1 of 2): yes
    Force user font-family in ePubs (Part 1 of 2): yes
    ePub constant font sharpness: yes
    KePub constant font sharpness: yes
    Always display chapter name on navigation menu: yes
    Clock display duration: yes
  src/librmsdk.so.1.0.0.yaml:
    Disable orphans/widows avoidance: yes
    Default ePub monospace font (Courier): yes
    Force user line spacing in ePubs (Part 2 of 2): yes
    Force user font-family in ePubs (Part 2 of 2): yes
    Ignore ePub book Adobe XPGT stylesheet (page-template.xpgt): yes
Attached Thumbnails
Click image for larger version

Name:	Georgia Font.jpg
Views:	192
Size:	470.9 KB
ID:	167533   Click image for larger version

Name:	Bold Font.jpg
Views:	186
Size:	471.0 KB
ID:	167534   Click image for larger version

Name:	Format Shift.jpg
Views:	182
Size:	420.6 KB
ID:	167535  
Ripplinger is offline   Reply With Quote
Old 11-08-2018, 12:57 PM   #2
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 913
Karma: 270670
Join Date: Jun 2016
Device: Kobo
Ripplinger,
is the font you have chosen to read the book.
Semwize is offline   Reply With Quote
Advert
Old 11-08-2018, 01:23 PM   #3
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,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"
N.B:
  • The \0 at the end of the code is necessary.
  • Also note the 2-char indent on all of the above code.
  • As GeoffR's notes imply, I don't know how well it works if you use a sideloaded font rather than Georgia or Avenir.
jackie_w is offline   Reply With Quote
Old 11-08-2018, 02:42 PM   #4
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
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.
Ripplinger is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:18 AM.


MobileRead.com is a privately owned, operated and funded community.