QFontDatabase/QFont question
Charles
peacech at gmail.com
Mon Jan 6 01:47:26 GMT 2025
It works for me (Win 10, Qt 6.8.1).
I didn't add the font to the Windows fonts directory though but used
QFontDatabase.addApplicationFont.
Also setItalic(True) produces oblique font which is synthesized italic,
using the "Bold Italic" style produces better results
[image: 2025-01-06 08_44_44-python.png]
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250106/831572e1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2025-01-06 08_44_44-python.png
Type: image/png
Size: 14679 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250106/831572e1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.py
Type: application/octet-stream
Size: 1222 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250106/831572e1/attachment.obj>
More information about the PyQt
mailing list