[Qt-interest] include default font into application
Robin Helgelin
lobbin at gmail.com
Tue Mar 3 11:27:28 CET 2009
On Tue, Mar 3, 2009 at 11:16, Markus Franke
<markus.franke at informatik.tu-chemnitz.de> wrote:
> Dear Qt Developers/Users,
>
> I would like to include the default font of my application inside the
> application itself to make sure it is present on each target system.
> How can I achieve this behaviour? I was looking at
> QDir::addSearchPath(). Is this the right way to go? If so,, what is
> the correct prefix name for fonts?
I think these will do the trick
int QFontDatabase::addApplicationFont ( const QString & fileName ) [static]
int QFontDatabase::addApplicationFontFromData ( const QByteArray &
fontData ) [static]
--
regards,
Robin
More information about the Qt-interest-old
mailing list