def unload(filename): assert filename in FontManager._cache fontid = FontManager._cache[filename] dprint('Unloading font "%s" as id %d' % (filename, fontid)) blf.unload(filename) del FontManager._cache[filename] if fontid == FontManager._last_fontid: FontManager._last_fontid = 0
def unload(filename): assert filename in FontManager._cache fontid = FontManager._cache[filename] dprint('Unloading font "%s" as id %d' % (filename, fontid)) blf.unload(filename) del FontManager._cache[filename] if fontid == FontManager._last_fontid: FontManager._last_fontid = 0
def unload_custom_font(font_file_path): font_path = font_file_path font_id = blf.unload(font_path)
def unload_fontids(): for name,fontid in FontManager._cache.items(): print('Unloading font "%s" as id %d' % (name, fontid)) blf.unload(name) FontManager._cache = {} FontManager._last_fontid = 0
def unload_custom_font(font_file_path): font_path = font_file_path font_id = blf.unload(font_path)
def unload_font(self): if self.font_id is not None: self.font_id = None blf.unload(self.font_path)
def unloadExternalFontId(font_id, file_font): winman = bpy.context.window_manager debug = winman.bpm_projectdatas.debug if debug: print(unload_font_statement + file_font) #debug font_id["font_id"] = 0 blf.unload(file_font)
def unloadExternalFontId(font_id, file_font): winman = bpy.context.window_manager if winman.bpm_generalsettings.debug: print(unload_font_statement + file_font) #debug font_id["font_id"] = 0 blf.unload(file_font)
def unload_fontids(): for name,fontid in FontManager._cache.items(): print('Unloading font "%s" as id %d' % (name, fontid)) blf.unload(name) FontManager._cache = {} FontManager._last_fontid = 0