[PyQt] Embedding a font into a resource file
pard
pardmeister at gmail.com
Mon Oct 4 15:06:50 BST 2010
Thanks
On 4 October 2010 16:05, Hans-Peter Jansen <hpj at urpla.net> wrote:
> On Monday 04 October 2010, 15:49:07 pard wrote:
> > Hi
> >
> > Is it possible to embed a font into a resource file and set the
> > application font from the compiled resource file?
>
> You can add __any__ data to the resource file, but you should keep in mind,
> that this data is always loaded into memory on startup.
>
> Regarding an application font, you need to register it in the QFontDatabase
> and set it with QApplication.setFont() as the default font on startup.
>
> Hth,
> Pete
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101004/61411522/attachment.html>
More information about the PyQt
mailing list