102 except AttributeError: |
102 except AttributeError: |
103 rangeHigh = list(range(40, 128)) |
103 rangeHigh = list(range(40, 128)) |
104 |
104 |
105 f = font.family().encode() |
105 f = font.family().encode() |
106 ps = font.pointSize() |
106 ps = font.pointSize() |
|
107 weight = -font.weight() |
|
108 italic = font.italic() |
|
109 underline = font.underline() |
107 for style in rangeLow + rangeHigh: |
110 for style in rangeLow + rangeHigh: |
108 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) |
111 self.SendScintilla(QsciScintilla.SCI_STYLESETFONT, style, f) |
109 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) |
112 self.SendScintilla(QsciScintilla.SCI_STYLESETSIZE, style, ps) |
|
113 self.SendScintilla(QsciScintilla.SCI_STYLESETWEIGHT, style, weight); |
|
114 self.SendScintilla(QsciScintilla.SCI_STYLESETITALIC, style, italic); |
|
115 self.SendScintilla(QsciScintilla.SCI_STYLESETUNDERLINE, style, underline); |
110 |
116 |
111 def linesOnScreen(self): |
117 def linesOnScreen(self): |
112 """ |
118 """ |
113 Public method to get the amount of visible lines. |
119 Public method to get the amount of visible lines. |
114 |
120 |