docs: def glyph_has_ink(font: TTFont, name: Text) -> bool:
    """Checks if specified glyph has any ink.
  
    That is, that it has at least one defined contour associated.
    Composites are considered to have ink if any of their components have ink.
    Args:
        font:       the font
        glyph_name: The name of the glyph to check for ink.
    Returns:
        True if the font has at least one contour associated with it.
    """
    if 'glyf' in font:
      return ttf_glyph_has_ink(font, name)
    elif ('CFF ' in font) or ('CFF2' in font):
      return cff_glyph_has_ink(font, name)
    else:
      raise Exception("Could not find 'glyf', 'CFF ', or 'CFF2' table.")