View Single Post
Old 07-15-2011, 01:33 PM   #46
george.talusan
Kobo Developer Intern
george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.
 
george.talusan's Avatar
 
Posts: 84
Karma: 253043
Join Date: Apr 2010
Location: Toronto, ON
Device: Kobo Touch, Kobo Mini, Kobo Glo
Quote:
Originally Posted by charleski View Post
So you have separate font files (e.g. Garamond-Regular.otf, Garamond-Italic.otf, Garamond-Bold.otf) all in the same directory? Sounds like they're just relying on the fonts being properly tagged then. This'll work in most cases, but I've come across some fonts (including some rather expensive commercial ones) that aren't.
This is true. The Adobe SDK allows us to specify a URL to a font file but Qt doesn't allow us to introspect a TTF/OTF for its font family/weight without difficulty.

The resolution is that fonts should end with -Bold, -BoldItalic, -Italic, or alternatively, b, i, z.
george.talusan is offline   Reply With Quote