def _webkit_version(self): return NSBundle.bundleForClass_(WKWebView).infoDictionary().get( "CFBundleVersion").strip()
</div> </div> <!-- Disclaimer --> <p id="helptext" onmouseleave="vanish(this);"> Ctrl-R: Reset Charset. Ctrl-L: Latin1. Ctrl-J: LTR/RTL. Ctrl-C: Center. Ctrl-X: X-Ray. Not working? Please try in a newer macOS or use the <a href="https://www.google.com/chrome/">latest Chrome</a>. Pull mouse across this note to make it disappear. </p> </body> </html> """ % (samsaPlaceholder) # clears macro window log: Glyphs.clearLog() # Query app version: GLYPHSAPPVERSION = NSBundle.bundleForClass_(NSClassFromString( "GSMenu")).infoDictionary().objectForKey_("CFBundleShortVersionString") appVersionHighEnough = not GLYPHSAPPVERSION.startswith("1.") optionKeyFlag = 524288 optionKeyPressed = NSEvent.modifierFlags() & optionKeyFlag == optionKeyFlag shouldCreateSamsa = False if optionKeyPressed: shouldCreateSamsa = True if appVersionHighEnough: firstDoc = Glyphs.orderedDocuments()[0] thisFont = Glyphs.font # frontmost font exportPath = currentOTVarExportPath() # familyName = otVarFamilyName(thisFont) fullName = otVarFullName(thisFont) fileName = otVarFileName(thisFont)
# # For help on the use of Interface Builder: # https://github.com/schriftgestalt/GlyphsSDK/tree/master/Python%20Templates # # ########################################################################################################### from __future__ import division, print_function from AppKit import NSBundle from GlyphsApp import * from GlyphsApp.plugins import * from Foundation import NSPoint, NSAffineTransform, NSAffineTransformStruct from vanilla import FloatingWindow, Group, EditText, Tabs, CheckBox, Button from math import atan2, degrees, hypot bundle = NSBundle.bundleForClass_(GSFont.__class__) objc.initFrameworkWrapper( "GlyphsCore", frameworkIdentifier="com.schriftgestaltung.GlyphsCore", frameworkPath=bundle.bundlePath(), globals=globals()) class ItalicExtremes(FilterWithDialog): def loadPlugin(self): self.menuName = "Italic Extremes" self.actionButtonLabel = 'Add Nodes' self.keyboardShortcut = None windowWidth = 300 windowHeight = 120 m, h, yPos = 10, 18, 10