code: def get_text_width(self, text):
          
          return len(text) * self.get_font_width(self.font_name, self.font_size)
docs: Return the width of text.
  
          This implementation assumes a fixed font of:
  
          font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"
          >>> badge = Badge('x', 1, font_name='DejaVu Sans,Verdana,Geneva,sans-serif', font_size=11)
          >>> badge.get_text_width('pylint')
          42