|  12-12-2019, 09:26 AM | #16 | 
| Grand Sorcerer            Posts: 6,266 Karma: 16544702 Join Date: Sep 2009 Location: UK Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 | |
|   |   | 
|  12-12-2019, 09:47 AM | #17 | |
| Guru            Posts: 920 Karma: 275656 Join Date: Jun 2016 Device: Kobo | Quote: 
 Add to this patch: Code:         - {Find: "#caption[newHeader=true][localeName=\"zh\"],\n#caption[newFooter=true][localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Simplified, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#caption[newHeader=true][localeName=\"zh-HK\"],\n#caption[newFooter=true][localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"}
        - {Find: "#caption[newHeader=true][localeName=\"zh-TW\"],\n#caption[newFooter=true][localeName=\"zh-TW\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n", Replace: "\n"} | |
|   |   | 
|  12-12-2019, 09:59 AM | #18 | |
| Resident Curmudgeon            Posts: 80,677 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  12-12-2019, 10:07 AM | #19 | 
| Guru            Posts: 820 Karma: 6528026 Join Date: Sep 2012 Device: Kobo Elipsa | 
			
			Quite a few of my epubs use font-family: monospace, with no mention of Courier at all. Currently this displays on the ereader as sans-serif instead of monospace. Is there any way to force this to display Courier-whatever instead? I tried changing one of these to font-family: "Courier", monospace, but that didn't seem to work either. I tried a bunch of different things (Courier fonts side-loaded into a fonts subdirectory, no Courier fonts side-loaded, ePub, KePub, turning off the reader between each try)...nothing worked. If I have a monospace font embedded into the epub, it works, but everything else displays as sans-serif, not monospace.
		 | 
|   |   | 
|  12-12-2019, 10:18 AM | #20 | |
| Grand Sorcerer            Posts: 6,266 Karma: 16544702 Join Date: Sep 2009 Location: UK Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 | Quote: 
 2. What is the exact name of your sideloaded monospace font? | |
|   |   | 
|  12-12-2019, 10:19 AM | #21 | |
| Resident Curmudgeon            Posts: 80,677 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  12-12-2019, 10:25 AM | #22 | |
| Connoisseur  Posts: 96 Karma: 12 Join Date: Nov 2018 Location: Salamanca Device: kobo Clara HD, Onyxboox C67 | Quote: 
 | |
|   |   | 
|  12-12-2019, 10:38 AM | #23 | 
| Guru            Posts: 920 Karma: 275656 Join Date: Jun 2016 Device: Kobo | |
|   |   | 
|  12-12-2019, 10:47 AM | #24 | 
| JimInRussell            Posts: 355 Karma: 143302 Join Date: Nov 2010 Location: Russell Ontario Canada Device: kobo Aura One, Forma, Elipsa, Sage | 
			
			I see that after rewriting the patch for "Freedom to advanced fonts control" it has also been renamed to "Enable advanced settings for all fonts", tripped me up as I knew it had been rewritten but didn't know it had been renamed, had to update my kobopatch.yaml override to use the new name before I could get this to work. Thanks Patrick for getting these out so fast! | 
|   |   | 
|  12-12-2019, 10:54 AM | #25 | |
| Guru            Posts: 820 Karma: 6528026 Join Date: Sep 2012 Device: Kobo Elipsa | Quote: 
 2. Courier Prime, Courier Prime-Bold, Courier Prime-Italic, and Courier Prime-BoldItalic. All ttf. I was trying things one after another, so it's entirely possible that I did something incorrectly. I'll give it another try this morning. I assume I need to side-load the Courier Prime fonts into the /fonts subdirectory on the Kobo, and that this only works for epubs. Is that correct? | |
|   |   | 
|  12-12-2019, 10:58 AM | #26 | 
| Resident Curmudgeon            Posts: 80,677 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | |
|   |   | 
|  12-12-2019, 10:59 AM | #27 | |
| Resident Curmudgeon            Posts: 80,677 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  12-12-2019, 11:25 AM | #28 | 
| Guru            Posts: 820 Karma: 6528026 Join Date: Sep 2012 Device: Kobo Elipsa | 
			
			I did reboot. But the only time it displays correctly is if I change the property in the epub's stylesheet from font-family: monospace to font-family: "Courier Prime", monospace. Then it displays correctly on both epub and kepub. But if I change it to anything else (I tried font-family: Courier, monospace as well as font-family: "Courier", monospace), it displays as sans-serif. I really don't want to change all my stylesheets with font-family: monospace to font-family: "Courier Prime", monospace, especially if I decide to change my default monospace font to something other than "Courier Prime." Is there any way to force font-family: monospace to use whatever monospace font is installed?
		 | 
|   |   | 
|  12-12-2019, 11:35 AM | #29 | |
| Resident Curmudgeon            Posts: 80,677 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  12-12-2019, 11:53 AM | #30 | 
| Gentleman and scholar            Posts: 11,499 Karma: 111164374 Join Date: Jun 2015 Location: Space City, Texas Device: Clara BW; Nook ST w/Glowlight, Paperwhite 3 | 
			
			Does the swap header/footer still require both header and footer to be displayed to work correctly?
		 | 
|   |   | 
|  | 
| Tags | 
| kobopatch, patch, patch32lsb, patches, patching | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 06:15 AM | 
| Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM | 
| Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM | 
| Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 09:22 AM | 
| Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |