code: def textsize(txt, font=None):
      
      font = font or DEFAULT_FONT
      src = [c for ascii_code in txt for c in font[ord(ascii_code)]]
      return (len(src), 8)
docs: Calculates the bounding box of the text, as drawn in the specified font.
      This method is most useful for when the
      :py:class:`~luma.core.legacy.font.proportional` wrapper is used.
  
      :param txt: The text string to calculate the bounds for
      :type txt: str
      :param font: The font (from :py:mod:`luma.core.legacy.font`) to use.