def has_verdana():
 import matplotlib.font_manager as mplfm
 try:
  verdana_font = mplfm.findfont('Verdana', fallback_to_default=False)
 except:
  return False
 try:
  unlikely_font = mplfm.findfont('very_unlikely_to_exist1234', fallback_to_default=False)
 except:
  return True
 return (verdana_font != unlikely_font)

def has_verdana ( ) : import matplotlib . font_manager as mplfm try : verdana_font = mplfm . findfont ( 'Verdana' , fallback_to_default = False ) except : return False try : unlikely_font = mplfm . findfont ( 'very_unlikely_to_exist1234' , fallback_to_default = False ) except : return True return ( verdana_font != unlikely_font )
helper to verify if verdana font is present .