Update font description and add native font dialog setting to config

This commit is contained in:
Veronica Berglyd Olsen
2024-05-22 23:31:28 +02:00
parent cc32674b0f
commit 1fe7ca3db8
4 changed files with 9 additions and 3 deletions
+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