List of available fonts
Unsolved
General and Desktop
-
Hello,
I would like to read all available fonts of an operating system into a QComboBox. How does it work?
-
-
Thank you
-
I'm Python Fresh
I don't find out how to do it. Can you please give an example?
-
@PythonQTMarlem
Seriously? I expect you to be able to figure this out, whether you are "Python Fresh" or not, there is even an example at https://doc.qt.io/qt-5/qfontdatabase.html#details....fonts = QFontDatabase() names = fonts.families()
-
@JonB said in List of available fonts:
fonts = QFontDatabase()
names = fonts.families()Oh I am sorry. You are right, it was very simple. thank you!
-
Even easier: You can use a
QFontComboBox
directly.