These are scripts for Glyphs. Some may not work in Glyphs 3, WIP. Some scripts use Vanilla.
Put the scripts into Scripts folder: Library – Application Support - Glyphs - Scripts (Cmd + Shift + Y) or through Plugin Manager in Glyphs 3.
Align and reflect nodes and handles. Useful with keyboard shortcuts — I personally use Ctrl + Cmd + Arrow keys. Set it in System Preferences – Keyboard – Shortcuts.
- align selected nodes;
- align paths (select the whole path) and components;
- align node to the next / previous node (select one node only);
- align to the next closest measurment line (vertical metrics, half x-height, half cap-height);
- takes into account the italic angle (which is super duper cool!);
- takes into account smooth connection (“green” nodes)
- NEW: with Caps Lock on, you can now align the whole selection to glyph metrics / measurment lines (vertical metrics, half x-height, half cap-height)
Center Selected Glyphs sets equal left and right sidebearings within the same width for all layers of selected glyphs.
Batch-exports the currently active font to otf, ttf, web (woff, woff2) and variable formats. Options:
- Separate folders for each format
- Separate folders for each familyName
- Export only the current or all open fonts Added an option to post-process (compress) exporteed otf/ttf to web formats, which is faster than exporting them from Glyphs. Needs FontTools. To stop exporting, delete or move the folder.
Sets (or cleans) preferredFamily and preferredSubfamily instance custom parameters. Based on Font Family Name and Instance / Style Name. Useful for office apps compatibility.
A simple way to reorder glyphs with glyphOrder custom parameter.
- Copy space separeted glyph names.
- Select glyph, in front of which you want to paste them.
- Run the script. If glyphOrder custom parameter is missing, it will be created.
Toggles dark mode on and off.
Toggles Macro panel floating (always on top) on and off.
Toggles between masters across axis number 1 (or 2, 3, 4) or Italic axis (no matter what number it is). Takes into account selected layers in the current tab. Smart enough to toggle special brace layers such as {50, 100, 0} > {50, 100, 15}.
Generates instances with limited character set (customizable) from active instances. Adds “Demo” suffix, removes features and OT classes depending on the character set. Needs Vanilla.
Removes all characters from a text, except selected ones. Useful for testing WIP fonts with limited character set. Needs Vanilla.
Harmonizes any selected on-curve points. Algorithm found at @simoncozens. Now the same as Green Harmony plugin.
Checks if there are any off-curve points (handles) dangerously close to their curve segment (that may cause problems with conversion to True Type bezier for variable fonts). Opens problematic layers in a new tab. Default threshold value is 0.05 units.
Shows how many points are there in each layer of the current glyph. Useful for fixing interpolation.
For the current pair in the edit view, sets the kerning to maximum. Maximum is the half width of the narrower layer in the pair. Useful for kerning (but not overkerning) stuff like .T. or 'A'
Removes kerning for selected pair(s) from all masters. If the glyph has a kerning group, it will remove kerning for that group. Exceptions (open locks) are ignored because it’s unclear how to treat them, especially if not all masters have that exception.
A better algorithm for correcting order of shapes (paths, components). It orders paths by length, y, and x. It orders components by glyph name, y, x. Works somewhat more reliably than Glyphs' own shape ordering tool.
Creates an OpenType feature that randomizes alternatives.
- Glyphs from the selected Categories are randomly added to the selected number of Classes (called rand...).
- Then glyphs and its alternatives are randomly placed in 'sub... by ...' sequences of the chosen length.
- That can be repeated a few times, depending on how many lookups and lines per lookup you choose. Input format: glyph and its alternatives space separated. Next glyph with its alternatives go to the next line. The script is sketchy. The randomness depends on the numbers of classes and lines; I’d say start low and increase the values until it feel right.
Fits text in current tab into full screen (if Text/Hand tool is selected) or fits current layer (if other tools are being selected). Works weirdly in Glyphs 3. Send help! :)
Very specific tool that helps to solve kinks on terminals between narrow and normal widths. Converts this:
into this:
Set’s the kerning for the current pair based on the distance between the next 2 glyphs, as measured at the cursor’s vertical position. Example: to kern AV the same as VA, type AVVA, place the cursor between AV, and point with the mouse at which vertical position you want the same distance between AV and VA.
Copyright 2020 Alex Slobzheninov.
Some algorithm input by Simon Cozens (@simoncozens). Floating window code help by Florian Pircher. Distribute Nodes Horizontally/Vertically are a slightly modified version of Distribute Nodes by Rainer Erich Scheichelbauer (@mekkablue)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use the software provided here except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
See the License file included in this repository for further details.