Example #1
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(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
Example #3
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
Example #5
0
def unload_custom_font(font_file_path):
    font_path = font_file_path
    font_id = blf.unload(font_path)
Example #6
0
def unload_font(self):
    if self.font_id is not None:
        self.font_id = None
        blf.unload(self.font_path)
Example #7
0
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)
Example #8
0
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)
Example #9
0
 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