@font-face in QtStyle or embeeded fonts
Unsolved
General and Desktop
-
Hi,
I'm customizing an app that supports Qt CSS, I've actually changed some font inside the app with font-family, but this obviously works only if the font is already installed in the machine. Is it possible to use an external font like google fonts via @font-face, or some font in the same directory of the .css? so that the font installation is not needed?Thank you
-
Hi
As far as i know its not possible with stylesheets.
You can load fonts from resource file/folder with Qt but
it takes code
QFontDatabase::addApplicationFont(":/fonts/monospace.ttf");I have never seen anything that allows this directly in stylesheets.