94 rangeHigh = list(range(self.STYLE_LASTPREDEFINED + 1, |
94 rangeHigh = list(range(self.STYLE_LASTPREDEFINED + 1, |
95 self.STYLE_MAX + 1)) |
95 self.STYLE_MAX + 1)) |
96 except AttributeError: |
96 except AttributeError: |
97 rangeHigh = list(range(40, 128)) |
97 rangeHigh = list(range(40, 128)) |
98 |
98 |
99 f = font.family() |
99 f = font.family().encode() |
100 ps = font.pointSize() |
100 ps = font.pointSize() |
101 for style in rangeLow + rangeHigh: |
101 for style in rangeLow + rangeHigh: |
102 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) |
102 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) |
103 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) |
103 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) |
104 |
104 |