Skip to content

Instantly share code, notes, and snippets.

View schriftgestalt's full-sized avatar

Georg Seifert schriftgestalt

View GitHub Profile
Font = Glyphs.font
Glyphs.clearLog()
currentGraphicView = Font.currentTab.graphicView()
#thisActivePosition = currentGraphicView.activePosition() # This could be used to just the visibleRect
thisVisibleRect = currentGraphicView.visibleRect()
thisScale = currentGraphicView.scale()
for eachTab in Font.tabs:
#MenuTitle: Set Transform Origin to Centre of Selection
# -*- coding: utf-8 -*-
__doc__="""
Sets origin point for Rotate tool to the centre of the selection.
"""
import GlyphsApp
Font = Glyphs.font
selectedLayer = Font.selectedLayers[0]
#MenuTitle: Show Glyphs with this Anchor
# -*- coding: utf-8 -*-
__doc__="""
New Tab with all Glyphs that have the selected anchor.
"""
thisFont = Glyphs.font # frontmost font
selectedLayer = thisFont.selectedLayers[0]
selection = selectedLayer.selection