Thread: Aura Sideloaded fonts
View Single Post
Old 07-06-2014, 12:35 AM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,053
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by pgaunt View Post
I load fonts into the directory called 'fonts' and name them using the scheme 'FontName-Face' where 'Face' is one of Regular, Italic, Bold or BoldItalic.

Around half the time this works fine but the rest of the time the Aura gets muddled and thinks that the fonts aren't as they are - sometimes it will, for example, think that the Italic font is the Regular font and other times it will think that the Bold font is.

The problem, if it exists, always shows up in the font menu but usually only affects the actual display of kepubs but not epubs.

There seems to be no system to whether it gets it right or wrong leading me to suspect that it might just be kind of random.

I'm getting the fonts from various sources - off my Mac and from Google's webfonts.
A couple of items come to mind. First is to check is that you were using the font family name and not the name of the font file when naming your font files. You might want to take a look at a message I wrote quite a while back in the Modified Fonts sticky thread ( https://www.mobileread.com/forums/sho...9&postcount=11 ). Under Windows, I use the built-in Windows Font Viewer utility, under Mac OS X, I was using Font Info dialog from within FontForge (which is horrendous overkill just to read the font family name), I've since switched to TTFEdit but not using it all that much -- FontForge was nicer but now only comes in source code and hasn't been updated in a couple of years.

In a spoiler in the first message of Modified Fonts thread, you'll find a quote from a Kobo developer, George Talusan: "but Qt doesn't allow us to introspect a TTF/OTF for its font family/weight without difficulty." which requires us to use the font family name with -font style/weight.

When I looked at the hinted version of Charis SIL that JSWolf mentioned in a previous message in this thread, I had to rename the files in the archive to get them to work happily on my Kobo -- the CharisSILCompactLarger files needed to be changed to Charis SIL CompactLarger (with the embedded spaces) and the CharisSILSmCPCompactLarger files needed to be changed to Charis SIL SmCP CompactLarger (again embedded spaces).

The other item to remember is that after installing a new font, you MUST power cycle your Kobo ereader before attempting to use the font.

My personal choice of font that I use the vast majority of the time is JSWolf's modified Charis SIL package. My alternative for books with a lot of Greek/Cyrillic is Deja Vu Serif.

Edit: added screen cap of font viewer showing the font family name.

Regards,
David
Attached Thumbnails
Click image for larger version

Name:	fontviewer_CharisSIL.jpg
Views:	457
Size:	281.3 KB
ID:	124957  

Last edited by DNSB; 07-06-2014 at 12:58 AM. Reason: added image
DNSB is offline   Reply With Quote