Thread: Too large font?
View Single Post
Old 10-08-2022, 05:11 PM   #11
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 errenay View Post
Yes, in Polish language we have rather "Przeczytano 28%" than "28% przeczytano" (contrary to English). I've thought that changing font size is the best way to solve the missing (and important!) part.
I've added options to the existing patch New home screen subtitle custom font to change the font-size of the "Przeczytano 28%" upper label on the Home screen. To use it:
  1. Find the existing patch name in your copy of nickel.yaml
  2. Replace the whole thing with the new patch code in the spoiler below
  3. Your info box says you have a Libra H2O, so find this line in the new patch code
    Code:
    Replace: "RegularElidedLabel[qApp_deviceIsStorm=true] {\n  font-size: 42px;\n}"
    and reduce the font-size from 42px to whatever you want.
  4. Enable the patch, re-run kobopatch and install all your patches in the normal way.
New home screen subtitle custom font - updated
Spoiler:
Code:
New home screen subtitle custom font:
  - Enabled: no
  - Description: |
      On the Home screen:
        Change upper label font-size
        Change subtitle (lower label) font size and/or font colour.
      Upper label example is the black text caption
      - 'x% Read' - top row
      - 'My Books' - middle row
      Subtitle (lower label) examples are the grey text captions containing:
      - 'x HOURS TO GO' for kepubs (not shown for epubs) - top row
      - 'x BOOKS' under 'My Books' - middle row
      Works best when used with with patch `Increase home screen cover size`
  - FindZlib: "#homeWidgetTopContainer" # qss/GenericHomeWidget.qss
  - ReplaceZlibGroup:
      Replacements:
        # Change subtitle (lower label) font colour from mid-grey to black
        - {Find: "MetaDataLabel {\n  color: #666666;\n  qproperty-indent: 0;\n}", Replace: "MetaDataLabel {\n  color: #000000;\n  qproperty-indent: 0;\n}"}
        #
        # Change subtitle (lower label) font-size (e.g. time remaining in book)
          # Touch/Mini (Trilogy)
        - Find:    "MetaDataLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 13px;\n}"
          Replace: "MetaDataLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 14px;\n}"
          # Glo/Aura/Aura2E/Nia (Phoenix)
        - Find:    "MetaDataLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 17px;\n}"
          Replace: "MetaDataLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 18px;\n}"
          # AuraHD/AuraH2O/AuraH2O2/GloHD/ClaraHD (Dragon)
        - Find:    "MetaDataLabel[qApp_deviceIsDragon=true] {\n  font-size: 24px;\n}"
          Replace: "MetaDataLabel[qApp_deviceIsDragon=true] {\n  font-size: 26px;\n}"
          # LibraH2O/Libra2 (Storm)
        - Find:    "MetaDataLabel[qApp_deviceIsStorm=true] {\n  font-size: 28px;\n}"
          Replace: "MetaDataLabel[qApp_deviceIsStorm=true] {\n  font-size: 30px;\n}"
          # AuraONE/Forma/Sage/Elipsa (Daylight)
        - Find:    "MetaDataLabel[qApp_deviceIsDaylight=true] {\n  font-size: 31px;\n}"
          Replace: "MetaDataLabel[qApp_deviceIsDaylight=true] {\n  font-size: 34px;\n}"
        #
        # Change upper label (black) font-size (e.g. % Read)
          # Touch/Mini (Trilogy)
        - Find:    "RegularElidedLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 21px;\n}"
          Replace: "RegularElidedLabel[qApp_deviceIsTrilogy=true] {\n  font-size: 21px;\n}"
          # Glo/Aura/Aura2E/Nia (Phoenix)
        - Find:    "RegularElidedLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 26px;\n}"
          Replace: "RegularElidedLabel[qApp_deviceIsPhoenix=true] {\n  font-size: 26px;\n}"
          # AuraHD/AuraH2O/AuraH2O2/GloHD/ClaraHD (Dragon)
        - Find:    "RegularElidedLabel[qApp_deviceIsDragon=true] {\n  font-size: 36px;\n}"
          Replace: "RegularElidedLabel[qApp_deviceIsDragon=true] {\n  font-size: 36px;\n}"
          # LibraH2O/Libra2 (Storm)
        - Find:    "RegularElidedLabel[qApp_deviceIsStorm=true] {\n  font-size: 42px;\n}"
          Replace: "RegularElidedLabel[qApp_deviceIsStorm=true] {\n  font-size: 42px;\n}"
          # AuraONE/Forma/Sage/Elipsa (Daylight)
        - Find:    "RegularElidedLabel[qApp_deviceIsDaylight=true] {\n  font-size: 47px;\n}"
          Replace: "RegularElidedLabel[qApp_deviceIsDaylight=true] {\n  font-size: 47px;\n}"


If it works for you, please let me know and I'll push the update to @geek1011's GitHub repository for inclusion in the standard kobopatch pack.

As @DNSB has reported the Polish problem to Kobo, maybe they'll provide a fix in the next firmware update, but if not this updated patch should suffice.
jackie_w is offline   Reply With Quote