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
#MenuTitle: Bump down | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Align selected components, paths (and parts of paths) to the next metric line or guideline below. | |
""" | |
Font = Glyphs.font | |
Doc = Glyphs.currentDocument |
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
#MenuTitle: Move glyph down 1 unit | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Moves the current glyph(s) down by 1 unit. | |
Similar to ctrl-cmd-left/right. | |
Suggested shortcut: ctrl-cmd-downarrow. | |
""" | |
yDiff = -1 |
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
#MenuTitle: Open closed paths | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Opens all paths in the visible layers of selected glyphs. | |
""" | |
Font = Glyphs.font | |
selectedLayers = Font.selectedLayers | |
def process( thisLayer ): |
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
#MenuTitle: Insert BCPs into straight segments | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Inserts BCPs into straight segments of selected glyphs. The opposite of what the Tidy Up Paths command does. Useful if you want to bend the shape later. | |
""" | |
Font = Glyphs.font | |
FontMaster = Font.selectedFontMaster | |
selectedLayers = Font.selectedLayers | |
selectedLayer = selectedLayers[0] |
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
#MenuTitle: Close open paths | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Close all paths in visible layers of selected glyphs. | |
""" | |
Font = Glyphs.font | |
selectedLayers = Font.selectedLayers | |
def process( thisLayer ): |
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
#MenuTitle: Preflight Font | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Checks if everything is alright in the font. | |
""" | |
Doc = Glyphs.currentDocument | |
Font = Glyphs.font | |
Glyphs.clearLog() | |
Glyphs.showMacroWindow() |
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
#MenuTitle: Compare Font Info for Open Fonts | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Analyzes font info entries in all open fonts and outputs differences. | |
""" | |
Glyphs.clearLog() | |
Glyphs.showMacroWindow() |
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
#MenuTitle: Reset Compound Metrics to First Component | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Looks for the first component in a compound glyph and sets it back to x=0 and inherits its width. Useful for syncing numerators and denominators. | |
""" | |
Font = Glyphs.font | |
FontMasterID = Font.selectedFontMaster.id | |
selectedLayers = Font.selectedLayers |
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
#MenuTitle: Delete All Vertical Hints in Selected Glyphs | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Removes all vertical hints in the selected layers. | |
""" | |
thisFont = Glyphs.font # frontmost font | |
thisFontMaster = thisFont.selectedFontMaster # active master | |
listOfSelectedLayers = thisFont.selectedLayers # active layers of selected glyphs |
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
#MenuTitle: Delete All Vertical Hints in Font | |
# -*- coding: utf-8 -*- | |
__doc__=""" | |
Removes all vertical hints in the font. | |
""" | |
thisFont = Glyphs.font # frontmost font | |
thisFontMaster = thisFont.selectedFontMaster # active master | |
def process( thisLayer ): |