-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
global_variable.py
38 lines (33 loc) · 1.02 KB
/
global_variable.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
extensions = [".otf",
".otc",
".ttf",
".ttc",
".tte",
".pfb",
".dfont",
".OTF",
".OTC",
".TTF",
".TTC",
".TTE",
".DFONT",
".PFB",
]
#font selector files
fav_list = "fontselector_favorites"
font_list = "fontselector_fontlist"
filter_list = "fontselector_filter"
subdir_list = "fontselector_subdir"
size_file = "fontselector_size_"
json_file = "fontselector.json"
json_font_folders = "font_folders.json"
json_favorites = "font_favorites.json"
#fontselector fonts path
import os
script_file = os.path.realpath(__file__)
ress_path = os.path.join(os.path.dirname(script_file), "ress")
warning_font_path = os.path.join(ress_path, "FontSelector_Warning_Font.otf")
#default font folder
win_folder = {r"C:\Windows\Fonts"}
mac_folder = {r"/Library/Fonts",r"/System/Library/Fonts"}
linux_folder = {r"/usr/share/fonts"}