示例#1
0
 def GetDefaultPath(self, default_path=None):
     if default_path is None:
         value = self.path.GetValue()
         default_path = font_dictionary().get(value, value)
     if not os.path.isdir(default_path.strip()):
         for path in FONT_PATHS:
             if os.path.isdir(path):
                 return path
     return super(FontFileCtrl, self).GetDefaultPath(default_path)
示例#2
0
 def GetDefaultPath(self, default_path=None):
     if default_path is None:
         value = self.path.GetValue()
         default_path = font_dictionary().get(value, value)
     if not os.path.isdir(default_path.strip()):
         for path in FONT_PATHS:
             if os.path.isdir(path):
                 return path
     return super(FontFileCtrl, self).GetDefaultPath(default_path)
示例#3
0
文件: app.py 项目: anish/phatch
def _init_fonts():
    config.verify_app_user_paths()
    from lib.fonts import font_dictionary
    font_dictionary(force=True)
示例#4
0
文件: app.py 项目: Reimilia/Camellia
def _init_fonts():
    config.verify_app_user_paths()
    from lib.fonts import font_dictionary
    font_dictionary(force=True)
示例#5
0
def init_fonts():
    from lib.fonts import font_dictionary
    font_dictionary(force=True)