View Single Post
Old 06-19-2020, 12:07 PM   #54
Gone
Out of order
Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.Gone ought to be getting tired of karma fortunes by now.
 
Posts: 601
Karma: 1652684
Join Date: Feb 2014
Device: Libra Colour
Quote:
Originally Posted by jackie_w View Post
Sigh, I just had to get to the bottom of it once and for all. Grit your teeth and read on if you're interested ...

Final conclusion:
If you want a sideloaded font to work correctly with both epub and kepub for all regular/bold/italic/bolditalic sub-families. Do 2 things.
  1. Using Bookerly as the example, use the suffix naming convention
    Bookerly-Regular.ttf (or just Bookerly.ttf)
    Bookerly-Italic.ttf
    Bookerly-Bold.ttf
    Bookerly-BoldItalic.ttf
  2. If it's faulty, fix the internal Panose Weight metric using some kind of font editor. @Flaviocc provided a link above to my old instructions for how to do it in FontForge

Other findings:
If the font's internal Panose Weight is faulty but it isn't something you're able/prepared to fix then you may still get regular/bold/italic/bolditalic sub-families to work in either kepub or epub, but not both simultaneously.
  • Kepub only: use one of the 3 following suffix naming conventions.
    Either (as per Claude_C post)
    regular: Bookerly-a.ttf
    italic: Bookerly-b.ttf
    bold: Bookerly-c.ttf
    bolditalic: Bookerly-d.ttf
    or (ancient Windows convention)
    regular: Bookerly.ttf
    italic: Bookerlyi.ttf
    bold: Bookerlyb.ttf
    bolditalic: Bookerlyz.ttf
    or (as per DNSB post)
    regular: Bookerly.ttf
    italic: Bookerly-i.ttf
    bold: Bookerly-b.ttf
    bolditalic: Bookerly-z.ttf
  • Epub only: use this suffix naming convention
    regular: Bookerly-Regular.ttf (or just Bookerly.ttf)
    italic: Bookerly-Italic.ttf
    bold: Bookerly-Bold.ttf
    bolditalic: Bookerly-BoldItalic.ttf

... and finally ...
Whatever method you use, don't forget to reboot the Kobo after updating any sideloaded font files in the fonts subdirectory.

ETA: All info correct at time of going to press, firmware 4.21.15015. No future performance guarantees

I should have mentioned that I only read Kepub.

That’s the convention that worked for me.

Maybe it also depends form where you got the Bookerly fonts, what version*?
Gone is offline   Reply With Quote