View Single Post
Old 12-14-2019, 06:35 AM   #55
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
Quote:
Originally Posted by rtiangha View Post
If you're looking for a Courier font that's optimized for Kobo, why not check out GeoffR's modified version of Courier Prime? He corrected the PANOSE weights and made a few other tweaks.
Quote:
Originally Posted by davidfor View Post
The problem is the file names.
[ ... ]
Look at my post and match that. See the font thread in the stickies for more details.
Quote:
Originally Posted by icallaci View Post
Are you sure your font names use spaces between every word? The Courier Prime fonts I downloaded have hyphens in them, like this: Courier Prime-Bold.ttf, Courier Prime-Italic.ttf, Courier Prime-BoldItalic.ttf, etc.
Quote:
Originally Posted by JSWolf View Post
Download Courier Prime from Google at https://fonts.google.com/specimen/Co...=Courier+Prime and install that in fonts. Reboot and see what happens. Also, make sure that Courier Prime shows in the font list.
So all of the above now work for the test epub, for both using "Publisher Default" as the font or using my sideloaded Bookerly. GeoffR's modified font, the font downloaded from the link Jon posted (once I actually found the download section!), and renaming the Courier Prime files I first downloaded from the official (?) Quote-Unquote Apps site to include a '-' instead of a space before the weight/style suffixes all worked. Yay for that!

The moral of the story so far - make sure you either download a monospace font where the files are named correctly or fix the file names if they are dodgy.

Quote:
Originally Posted by davidfor View Post
If you choose a specific, all the fonts specified in the book are overridden. The "Publisher Default" will respect the fonts in the book.
Aha, that makes sense (now). Which takes me to ...



Quote:
Originally Posted by jackie_w View Post
Welcome to the world of font wrangling on Kobos. I seem to remember both of us were active on similar threads in the Sony days.
Indeed! Almost come full circle with fonts and devices

Quote:
I'm a bit lost in the maze of your findings so far but here are a couple of old links which might have relevant info now or in the future.
  • Getting monospace to work in kepubs
  • Even if you're reading standard epubs rather than kepubs you may still be butting heads with the fact that the default epub override CSS inside the firmware contains:
    Code:
    body, p { font-family: -ua-default !important; }
    which has the effect of ignoring any font-family styles set at the <p> tag level, in favour of your font-of-choice. For those who want it, there's a kobopatch ('Un-force font-family override p tags (std epubs)' to replace the body, p with a simple body.
  • The general bold/italic problem with sideloaded fonts on Kobo, as already mentioned by @rtiangha. Posts #2 and #9 in this thread have detailed instructions on fixing the panose issue.
The book I have with the monospace font is a kepub. For now I've got GeoffR's modified Courier Prime font sideloaded, as well as Bookerly.

With the font set to either "Publisher Default" or Bookerly, even with the 'Un-Force user font-family in KePubs' patch applied, the only way I can get the book to display Courier GR is to have font-family: "Courier GR", monospace; in my CSS (guessing the ", monospace" isn't doing much here). Curiously, if I just use font-family: monospace; I see a sans-serif font instead of a monospace font for any text that is meant to be monospace (!?!).

From reading the post you linked to, I think I've done option 2 and that isn't working. Option 3 is working, but is the case I'm trying to avoid (needing to modify every epub).

Jackie - do you have just font-family: monospace; working for kepubs when using a side-loaded font as your chosen font (instead of "Publisher Default") with the current kobo firmware?

Quote:
Originally Posted by davidfor View Post
Bug fixes that I know of:
  • Path for monospace font changed to match other fonts and name is "Courier". This should mean that any correctly sideloaded font whose name starts with "Courier" will be used when the monospace font face is specified.
David - do you know if this was an epub only fix, or a fix for kepub too?
snarkophilus is offline   Reply With Quote