conftypes: Set default settings for QtFont.

This commit is contained in:
Florian Bruhin 2014-08-07 07:33:24 +02:00
parent c8fe5bd1d2
commit e3f1cfe121

View File

@ -685,6 +685,9 @@ class QtFont(Font):
'bold': QFont.Bold,
}
font = QFont()
font.setStyle(QFont.StyleNormal)
font.setWeight(QFont.Normal)
match = self.font_regex.match(value)
style = match.group('style')
weight = match.group('weight')