This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vanilla import * | |
import merz | |
import mojo.subscriber as subs | |
from mojo.subscriber import Subscriber, registerGlyphEditorSubscriber | |
from mojo.subscriber import registerSubscriberEvent, getRegisteredSubscriberEvents | |
from mojo.extensions import registerExtensionDefaults, setExtensionDefault, getExtensionDefault, removeExtensionDefault | |
from mojo.drawingTools import * | |
from mojo.UI import SetCurrentGlyphByName | |
from math import radians, tan, pi | |
from AppKit import NSColor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Toggle the pair list of an open MetricsMachine (extension) window | |
from all kerning pairs (sorted by glyph order) to exceptions and back. | |
''' | |
import metricsMachine | |
from mm4.interface.documentWindow import MMDocumentWindowController | |
from mm4.mmScripting import _getMainWindowControllerForFont, MetricsMachineScriptingError | |
import mm4 |