# faults = False # if args.source is None: # faults = True # print( '=\n=> Please Provide Source fontinfo.JSON File: -s "/fontinfo.json"\n=' ) # if args.output is None: # #faults = True # print( '=\n=> Output Directory for EFO is fontinfo.JSON Parent Directory or Provide: -o "dir/"\n=' ) # if faults == False: # EFO = EFO(args.source, args.output) # EFO._ufos_to_efo() # fontinfo_json = EFO.fontinfo # #print(fontinfo_json) # #
# _COMPRESS.do_class_kern_replacement() # # # new_class_fontinfo[0]["shared_info"]["familyName"] = EFO.current_font_family_name new_class_fontinfo[1]["font_files"] = f_files_class # print(new_class_fontinfo) # c_fontinfo_dir = os.path.join(*(EFO._in,"temp",EFO.current_font_family_name,"fontinfo.json")) # with open(c_fontinfo_dir, 'w') as outfile: # json.dump(new_class_fontinfo, outfile) # # #python3 '/media/root/Malysh1/winshm/advent_repo/Advent/_/VRD_Typography_Library/ufos_to_efo.py' -s '/media/root/Malysh1/winshm/advent_repo/Advent/_/font_efo.efo/fontinfo.json' -o '/media/root/Malysh1/winshm/advent_repo/Advent/_/font_efo.efo # print(c_fontinfo_dir,args.source) # c_source_ufo_family = os.path.join(*(EFO._in,"temp",EFO.current_font_family_name)) # EFO._in = c_fontinfo_dir EFO._out = args.source EFO.current_source_ufo_family = c_source_ufo_family # EFO._ufos_to_efo(["kerning","features"], False, True, False) # # #
EFO.current_font_file_name = k # UFO_to_COMPUFO = COMPS(args.source, copy_ufo_for_componentization, EFO) # UFO_to_COMPUFO.ufos_comp() # # # new_class_fontinfo[0]["shared_info"][ "familyName"] = EFO.current_font_family_name new_class_fontinfo[1]["font_files"] = f_files_class # c_fontinfo_dir = os.path.join(*(EFO._in, "temp", "fontinfo.json")) # with open(c_fontinfo_dir, 'w') as outfile: # json.dump(new_class_fontinfo, outfile) # # c_source_ufo_family = os.path.join(*(EFO._in, "temp", EFO.current_font_family_name)) # EFO._in = c_fontinfo_dir EFO._out = args.source EFO.current_source_ufo_family = c_source_ufo_family # EFO._ufos_to_efo(["glyphs"], False, False, True) # generic_tools.empty_dir(EFO_temp) #