From 04ea59dd9b7c58ad56aadc2edd5246fd4745527c Mon Sep 17 00:00:00 2001 From: Patrick Gaskin Date: Tue, 20 Sep 2022 21:49:35 -0400 Subject: [PATCH] Backport e5086bb540ff8a2ab8b76d2482d44befc898608a through 4.32.19501 Co-Authored-By: jackiew1 <55494768+jackiew1@users.noreply.github.com> --- .../librmsdk.so.1.0.0.yaml/geoffr.yaml | 24 +++++++++++++++---- .../librmsdk.so.1.0.0.yaml/geoffr.yaml | 24 +++++++++++++++---- .../librmsdk.so.1.0.0.yaml/geoffr.yaml | 24 +++++++++++++++---- 3 files changed, 60 insertions(+), 12 deletions(-) diff --git a/src/versions/4.32.19501/librmsdk.so.1.0.0.yaml/geoffr.yaml b/src/versions/4.32.19501/librmsdk.so.1.0.0.yaml/geoffr.yaml index 3c61bb6..cd4d608 100644 --- a/src/versions/4.32.19501/librmsdk.so.1.0.0.yaml/geoffr.yaml +++ b/src/versions/4.32.19501/librmsdk.so.1.0.0.yaml/geoffr.yaml @@ -19,10 +19,26 @@ Disable orphans/widows avoidance: Default ePub serif font (Amasis): - Enabled: no - - Description: This patch changes the default ePub serif font from Georgia to Amasis. - # To use a different font, change "Amasis" in each of the replacement strings - # to another font name prefix (7 letters max.). For example, change "Amasis" - # to "Times" to use a sideloaded Times New Roman font. + - Description: | + This patch changes the default ePub serif font from Georgia to Amasis. + If the book's stylesheet specifies the generic 'font-family:serif;' then + the ePub reader will try to use the built-in system font Georgia. + Georgia is also the font you see if you select 'Publisher Default' from + the Kobo [Aa] menu and your epub has not specified any particular font. + This patch allows you to change the default to a different serif font + (built-in or sideloaded). + N.B. This patch does not affect kepubs. + + # fw 4.32.19501: The font-family name in Replace: must now be the WHOLE name + # not just the first few characters of the name. + # To use a different font, change "Amasis" in each replacement string + # to another font name (7 characters max). + # For example, change "Amasis" to "Bitter" to use a sideloaded Bitter font. + # + # If your new font name is longer than 7 chars you would need to: + # - Use a font editor to shorten the internal font-family name to <= 7 chars + # - Rename the 4 font filenames to match the new shortened name + # - Copy the 4 renamed font files into the Kobo sideloaded fonts folder - FindReplaceString: {Find: "/normal/Georgia", Replace: "/normal/Amasis"} - FindReplaceString: {Find: "/bold/Georgia", Replace: "/bold/Amasis"} - FindReplaceString: {Find: "/italic/Georgia", Replace: "/italic/Amasis"} diff --git a/src/versions/4.33.19608/librmsdk.so.1.0.0.yaml/geoffr.yaml b/src/versions/4.33.19608/librmsdk.so.1.0.0.yaml/geoffr.yaml index 3c61bb6..cd4d608 100644 --- a/src/versions/4.33.19608/librmsdk.so.1.0.0.yaml/geoffr.yaml +++ b/src/versions/4.33.19608/librmsdk.so.1.0.0.yaml/geoffr.yaml @@ -19,10 +19,26 @@ Disable orphans/widows avoidance: Default ePub serif font (Amasis): - Enabled: no - - Description: This patch changes the default ePub serif font from Georgia to Amasis. - # To use a different font, change "Amasis" in each of the replacement strings - # to another font name prefix (7 letters max.). For example, change "Amasis" - # to "Times" to use a sideloaded Times New Roman font. + - Description: | + This patch changes the default ePub serif font from Georgia to Amasis. + If the book's stylesheet specifies the generic 'font-family:serif;' then + the ePub reader will try to use the built-in system font Georgia. + Georgia is also the font you see if you select 'Publisher Default' from + the Kobo [Aa] menu and your epub has not specified any particular font. + This patch allows you to change the default to a different serif font + (built-in or sideloaded). + N.B. This patch does not affect kepubs. + + # fw 4.32.19501: The font-family name in Replace: must now be the WHOLE name + # not just the first few characters of the name. + # To use a different font, change "Amasis" in each replacement string + # to another font name (7 characters max). + # For example, change "Amasis" to "Bitter" to use a sideloaded Bitter font. + # + # If your new font name is longer than 7 chars you would need to: + # - Use a font editor to shorten the internal font-family name to <= 7 chars + # - Rename the 4 font filenames to match the new shortened name + # - Copy the 4 renamed font files into the Kobo sideloaded fonts folder - FindReplaceString: {Find: "/normal/Georgia", Replace: "/normal/Amasis"} - FindReplaceString: {Find: "/bold/Georgia", Replace: "/bold/Amasis"} - FindReplaceString: {Find: "/italic/Georgia", Replace: "/italic/Amasis"} diff --git a/src/versions/4.33.19611/librmsdk.so.1.0.0.yaml/geoffr.yaml b/src/versions/4.33.19611/librmsdk.so.1.0.0.yaml/geoffr.yaml index 3c61bb6..cd4d608 100644 --- a/src/versions/4.33.19611/librmsdk.so.1.0.0.yaml/geoffr.yaml +++ b/src/versions/4.33.19611/librmsdk.so.1.0.0.yaml/geoffr.yaml @@ -19,10 +19,26 @@ Disable orphans/widows avoidance: Default ePub serif font (Amasis): - Enabled: no - - Description: This patch changes the default ePub serif font from Georgia to Amasis. - # To use a different font, change "Amasis" in each of the replacement strings - # to another font name prefix (7 letters max.). For example, change "Amasis" - # to "Times" to use a sideloaded Times New Roman font. + - Description: | + This patch changes the default ePub serif font from Georgia to Amasis. + If the book's stylesheet specifies the generic 'font-family:serif;' then + the ePub reader will try to use the built-in system font Georgia. + Georgia is also the font you see if you select 'Publisher Default' from + the Kobo [Aa] menu and your epub has not specified any particular font. + This patch allows you to change the default to a different serif font + (built-in or sideloaded). + N.B. This patch does not affect kepubs. + + # fw 4.32.19501: The font-family name in Replace: must now be the WHOLE name + # not just the first few characters of the name. + # To use a different font, change "Amasis" in each replacement string + # to another font name (7 characters max). + # For example, change "Amasis" to "Bitter" to use a sideloaded Bitter font. + # + # If your new font name is longer than 7 chars you would need to: + # - Use a font editor to shorten the internal font-family name to <= 7 chars + # - Rename the 4 font filenames to match the new shortened name + # - Copy the 4 renamed font files into the Kobo sideloaded fonts folder - FindReplaceString: {Find: "/normal/Georgia", Replace: "/normal/Amasis"} - FindReplaceString: {Find: "/bold/Georgia", Replace: "/bold/Amasis"} - FindReplaceString: {Find: "/italic/Georgia", Replace: "/italic/Amasis"}