View Single Post
Old 12-13-2019, 05:21 AM   #40
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
I'm making progress but getting a little more confused along the way!

Step one - remove all patches, revert to stock firmware, and only side loaded font is Courier Prime. The files in my /fonts directory on the Kobo are:
Code:
NUC 6163> ls -l fonts
total 376
-rw-r--r-- 1 simon simon 91908 Jan 19  2013 Courier Prime Bold Italic.ttf
-rw-r--r-- 1 simon simon 91368 Jan 19  2013 Courier Prime Bold.ttf
-rw-r--r-- 1 simon simon 96196 Jan 19  2013 Courier Prime Italic.ttf
-rw-r--r-- 1 simon simon 98156 Jan 19  2013 Courier Prime.ttf
Your test epub with this is the attached screen_017.png. This is the "every style appears as bold italic" problem. I've confirmed that with Windows Font Viewer that each of these font files does contain the style that the name says.


Step two - toss out Courier Prime and copy Courier New from my PC to the /fonts directory. Progress! screen_020.png attached shows a nice monospace font, yay.


Now for the confusion.

screen_021.png is with font-family: monospace; in my book's CSS. This is clearly a sans-serif config (?!?!).

screen_022.png is with font-family: "Courier New", monospace; in my book's CSS. YAY !!!!!


Two takeouts so far then:
1- I guess the Courier Prime I found was a dud? Or at least a partial dud since Windows seemed happy but the Kobo obviously wasn't.
2- I'm still having problems with a plain font-family: monospace; but have something that works with "Courier New" added explicity. I'd like to avoid that, but I'm still a long way ahead of where I was when I started.

Tomorrow I'll re-install the kobopatches and see if Courier New still works.

EDIT: Well dang. If I choose Bookerly as my font instead of Publisher Default, then my monospace text reverts to Bookerly as well... Still not there yet.
Attached Thumbnails
Click image for larger version

Name:	screen_017.png
Views:	323
Size:	53.7 KB
ID:	175570   Click image for larger version

Name:	screen_020.png
Views:	338
Size:	46.2 KB
ID:	175571   Click image for larger version

Name:	screen_021.png
Views:	340
Size:	80.7 KB
ID:	175572   Click image for larger version

Name:	screen_022.png
Views:	321
Size:	72.9 KB
ID:	175573  

Last edited by snarkophilus; 12-13-2019 at 05:38 AM.
snarkophilus is offline   Reply With Quote