Example #1
0
 def install_fonts(self):
     from calibre.gui2.font_family_chooser import add_fonts
     families = add_fonts(self)
     if not families:
         return
     font_scanner.do_scan()
     self.refresh()
     info_dialog(self, _('Added fonts'), _('Added font families: %s')%(', '.join(families)), show=True)
 def install_fonts(self):
     from calibre.gui2.font_family_chooser import add_fonts
     families = add_fonts(self)
     if not families:
         return
     font_scanner.do_scan()
     self.refresh()
     info_dialog(self, _('Added fonts'), _('Added font families: %s')%(', '.join(families)), show=True)