def font_is_installed(font):
 return [fam for fam in QFontDatabase().families() if (to_text_string(fam) == font)]

def font_is_installed ( font ) : return [ fam for fam in QFontDatabase ( ) . families ( ) if ( to_text_string ( fam ) == font ) ]
check if font is installed .