def to_glyphs_master_user_data(self, ufo, master):
target_user_data = master.userData<EOL>for key, value in ufo.lib.items():<EOL><INDENT>if _user_data_has_no_special_meaning(key):<EOL><INDENT>target_user_data[key] = value<EOL><DEDENT><DEDENT>if ufo.data.fileNames:<EOL><INDENT>from glyphsLib.types import BinaryData<EOL>ufo_data = {}<EOL>for os_filename in ufo.data.fileNames:<EOL><INDENT>filename = posixpath.join(*os_filename.split(os.path.sep))<EOL>ufo_data[filename] = BinaryData(ufo.data[os_filename])<EOL><DEDENT>master.userData[UFO_DATA_KEY] = ufo_data<EOL><DEDENT>
Set the GSFontMaster userData from the UFO master-specific lib data.