Update font description and add native font dialog setting to config

This commit is contained in:
Veronica Berglyd Olsen committed 2024-05-22 23:31:28 +02:00
1 parent cc32674b0f
commit 1fe7ca3db8
4 files changed
+9 -3

No files matched your search

+2 -1
View File
@@ -492,7 +492,8 @@ def testBaseCommon_describeFont():
"""Test the describeFont function."""
fontDB = QFontDatabase()
font = fontDB.systemFont(QFontDatabase.SystemFont.GeneralFont)
assert font.family() in describeFont(font)
font.setPointSize(12)
assert describeFont(font).startswith("12 pt")
assert describeFont(None) == "Error" # type: ignore