def drop_non_windows_name_records(font):
 names = font['name'].names
 records_to_drop = set()
 for (record_number, record) in enumerate(names):
  name_ids = (record.platformID, record.platEncID, record.langID)
  if (name_ids != (3, 1, 1033)):
   records_to_drop.add(record_number)
 if records_to_drop:
  font['name'].names = [record for (record_number, record) in enumerate(names) if (record_number not in records_to_drop)]

def drop_non_windows_name_records ( font ) : names = font [ 'name' ] . names records_to_drop = set ( ) for ( record_number , record ) in enumerate ( names ) : name_ids = ( record . platformID , record . platEncID , record . langID ) if ( name_ids != ( 3 , 1 , 1033 ) ) : records_to_drop . add ( record_number ) if records_to_drop : font [ 'name' ] . names = [ record for ( record_number , record ) in enumerate ( names ) if ( record_number not in records_to_drop ) ]
drop name records whose != .