Skip to content

laerm0/wei-glyphs-scripts

 
 

Repository files navigation

Glyphs Scripts

###About

Some scripts for Glyphs font editor – tested with v2.3 only.

Put the scripts into the Scripts folder which appears when you choose Open Scripts Folder from the Scripts menu.

For some scripts, you will also need to install Tal Leming's Vanilla. Here's how.

In Glyphs 2.0 or later, go to Glyphs > Preferences > Addons > Scripts and click the Install Modules button. You are done and can skip the rest of these installation instructions.

Thanks to Georg Seifert and Rainer Erich Scheichelbauer for their help and for providing a great API and example scripts.

###About the Scripts

  • Compare Fonts - Compare 2 open files and opens a new tab (in the current font) for each master showing the glyphs that are different between the 2 files. A decomposed copy of each different glyph from the other file will also be pasted in the background of each glyph in the current file.
  • Add Space Between Each Selected Glyph
  • Add String Between Each Selected Glyph - Adds this string between each selected glyph, must be in /slash format
  • Add Placeholder Between Each Selected Glyph
  • Set Transform Origin to Centre of Selection - Sets origin point for Rotate tool to the centre of the selection. Works even if you select a single point!
  • Name This - Add a label for this guideline, anchor, point
  • Uppercase – Converts the selected text in a tab to uppercase.
  • Lowercase – Converts the selected text in a tab to lowercase.
  • Zoom Wide – Zooms the viewport to 50pts.- )

####Anchors

  • Find and Delete Anchors – Find and deletes all anchors in active layers of selected glyphs that contains the search string.
  • Delete All Anchors in All Masters of Selected Glyphs
  • Show Glyphs with this Anchor - New Tab with all Glyphs that have the selected anchor.

####Metrics

  • Adjust Kerning in Glyph – Adjusts kerning values for a specified glyph by a specified amount (edit the script manually to select glyph and adjustment amount).
  • Delete Kerning Pairs In Text – Deletes all selected kerning pairs present in selected text
  • Delete Kerning Pairs Smaller Than Popup – Delete all kerning pairs equal to or smaller than # in selected master
  • Show All Kerning Pairs With – Show All Kerning Pairs for this Master with searchString in a new tab in context (edit the script manually to select glyph).
  • Show All Kerning Pairs
  • Show Glyphs in Kerning Groups – Show all glyphs in the kerning groups of the selected glyph in a new tab.
  • Show Kerning Pairs – Show Kerning Pairs for this glyph in a new tab.
  • Show Kerning Pairs Context – Show Kerning Pairs in context for the selected glyphs in a new tab.
  • Show this in Context – Show selected text in spacing context in a new tab.
  • Show these in Context-Space – Show selected items, each separated by /space, in spacing context in a new tab. i.e. selecting "av aw af fe" and running this script will put each pair in kerning context
  • Sync All Metrics in All Masters
  • kernMakerFunc.py - The script that defines the context pattern (HOHnon etc) for kerning pairs for many of the above scripts.

Metrics Type:

  • Show All Linked Metrics Type – Report the linked metrics type for each glyph in every master in the macro window
  • Show All Metrics Type – Report the metrics type for each glyph in every master in the macro window
  • Show Each Metrics Type – Show glyphs that have auto metrics, linked metrics key or are manually entered in selected glyphs in a new tab
  • Show Linked Metrics
  • Show Manual Metrics
  • Show Non Automatic Alignment

####Masters:

  • Clear Every Master Layer – Clears every master layer and places content in background.
  • Copy Layer to All Layers – Copies one master to every master layer in selected glyphs.
  • Find and Delete Layers – Find layers with the search string and deletes them.
  • Find In Layer Names – Find layers with the search string in them and creates a new tab with the glyphs (haven't yet figured out how to show the correct layer). Useful for finding bracket layers.

####Preview and Text Tabs

  • Flip Edit Tab - Flips the entire edit tab upside down
  • Open Preview Panel - Open preview panel for all tabs
  • Set Preview Panel - Set preview panel height and master across every tab to the same as this tab
  • Set Same Master for Each Tab - Set every tab to the same master as this one
  • Set Same View Position for Each Tab - Set every tab to the same view position as this one (also sets the preview panel height)

###AppleScripts

These are AppleScripts that do exactly as they say. Assign them to a keyboard shortcut through Automator as a Service or with Fascripts (this is what I use, Automator seems to repeat the action if they keys are pressed a tiny bit too long), Quicksilver, etc.

  • Redo 10 times
  • Undo 10 times

(These scripts could be used in any appliction actually)

About

Scripts for Glyphs App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • AppleScript 0.8%