Skip to content

Commit c90fa18

Browse files
doudzdarkvertex
authored andcommitted
Update iconic_font.py to distinguish FA5's "solid style" as a separate font despite having the same font name as the "regular" style.
1 parent e827e81 commit c90fa18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qtawesome/iconic_font.py

+2
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ def font(self, prefix, size):
357357
"""Return a QFont corresponding to the given prefix and size."""
358358
font = QFont(self.fontname[prefix])
359359
font.setPixelSize(size)
360+
if prefix[-1] == 's': # solid style
361+
font.setStyleName('Solid')
360362
return font
361363

362364
def set_custom_icon(self, name, painter):

0 commit comments

Comments
 (0)