def _fontFamilyValidator(families):
 match = _fontRegexReplacements['__FONT_FAMILY_SINGLE']
 for f in families.split(u','):
  if (not match(f.strip())):
   return False
 return True

def _fontFamilyValidator ( families ) : match = _fontRegexReplacements [ '__FONT_FAMILY_SINGLE' ] for f in families . split ( u',' ) : if ( not match ( f . strip ( ) ) ) : return False return True
check if font-family value is valid .