[PyQt] Fonts: possible to set for entire app? possible to package with app?

Brian Knudson briank at pipelinefx.com
Sat Aug 18 01:28:11 BST 2012


1. I know it's possible to set a font for a particular type of item, i.e. .QLabel, in css; but is it possible to set a "base" font for for everything in one place without defining a .<Qt widget> for every widget type? 

2. Is it possible to package a font with the app, like in a resource file made with pyrcc4, that will work across multiple platforms, specifically Windows, Linux, and OS X?  Any limitations on the type of font?  If this is possible, how do you use the font resource in the css file?  I've tried 'font: ":/my_font.ttf"' without any luck.

Thanks,
-Brian


More information about the PyQt mailing list