Codebase list sugar-read-activity / cf82edf
Text - set font size and type Text files are often written to be read in monospaced font. James Cameron 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7676
7777 activity._hbox.pack_start(overlay, True, True, 0)
7878
79 self._font_size = style.zoom(10)
80 self.font_desc = Pango.FontDescription("sans %d" % self._font_size)
79 self._font_size = style.zoom(12)
80 self.font_desc = Pango.FontDescription("mono %d" % self._font_size)
8181 self.textview.modify_font(self.font_desc)
8282 self._zoom = 100
8383 self.font_zoom_relation = self._zoom / self._font_size