How to use custom Fonts
-
I want to use a custom fonts not a from a system, (some.ttf)
how can I do this? -
Hi,
You can use "QFontDatabase::addApplicationFont":http://qt-project.org/doc/qt-5/qfontdatabase.html#addApplicationFont. Just pass the .ttf file.
-
You can also use the Qt resource system and add your fonts as resource. Then you can pass the font resource location to QFontDatabase (e.g. ":/resources/some.ttf")
-
Thanks a lot. That's it