-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMiscPrefs.py
49 lines (35 loc) · 1.08 KB
/
MiscPrefs.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
39
40
41
42
43
44
45
46
47
import AppKit
from mojo.roboFont import version
from lib.tools.defaults import getDefault, setDefault
"""
Startup Script:
Miscellaneous preferences
-- Andy Clymer, github.com/andyclymer
"""
"""
----------------------------------------------------------------------
Set the menu bar name to include the RoboFont version number
"""
menu = AppKit.NSApp().mainMenu()
roboFontItem = menu.itemWithTitle_("RoboFont")
if roboFontItem:
roboFontItem.submenu().setTitle_("RoboFont %s " % version)
"""
----------------------------------------------------------------------
Turn on all deprecation warnings,
useful when updating code for RF3
"""
alwaysWarn = False
if alwaysWarn:
if version[0] == "3":
print("RF3 Beta: Turning on deprecation warnings")
import warnings
# The default is to only warn once:
# warnings.simplefilter("once")
# Warn always:
warnings.simplefilter("always")
"""
----------------------------------------------------------------------
Show full kerning group names
"""
setDefault("showFullKernGroupNames", True)