Created
December 10, 2014 20:48
-
-
Save typemytype/eb302ad37fe170386893 to your computer and use it in GitHub Desktop.
add a measurement line in RoboFont
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 AppKit import NSPoint | |
from mojo.events import MeasurementTool | |
measurement = MeasurementTool.measurementClass() | |
measurement.startPoint = NSPoint(100, 100) | |
measurement.endPoint = NSPoint(200, 200) | |
g = CurrentGlyph() | |
g.naked().measurements.append(measurement) | |
g.update() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment