Python scripts for the Glyphs font editor.
Switch branches/tags
Nothing to show
Clone or download
Latest commit af4dd3f Oct 16, 2018
Permalink
Failed to load latest commit information.
.gitignore File updated Dec 15, 2017
Clear background in all layers.py New and updated scripts Jan 18, 2018
Clear background in all master layers.py New and updated scripts Jan 18, 2018
Decompose all corner components.py New script Feb 7, 2018
Decompose all serif components.py New script May 2, 2018
Delete annotations in all layers.py New and updated scripts Jan 18, 2018
Delete annotations in all master layers.py New and updated scripts Jan 18, 2018
Display next layer.py Code completely re-written Feb 14, 2018
Display previous layer.py Code completely re-written Feb 14, 2018
Duplicate current layer.py Minor update Jan 17, 2018
LICENSE.txt Files updated Dec 15, 2017
Make component glyph for all masters.py New script Feb 10, 2018
Make lower-unicase font.py New script — thanks @schriftgestalt Feb 23, 2018
New tab with random LC non-text.py New script Apr 4, 2018
New tab with random UC non-text.py New script Apr 4, 2018
New tab with random title non-text.py New script Apr 4, 2018
New tabs with KernKing text.py Updated tab opening method — thanks @Mark2Mark Jan 29, 2018
README.md Update Oct 16, 2018
Scale background in selected glyphs.py Minor translation fix Mar 29, 2018
Select different colour.py New script May 3, 2018
Select partial path.py Minor update Jan 17, 2018
Select paths.py New script May 15, 2018
Select small paths.py Minor update Jan 17, 2018
Selection to all the backgrounds.py Minor update Jan 17, 2018
Set default figures.py Vanilla required message added Apr 6, 2018
Shift background in selected glyphs.py New script Mar 29, 2018
Simplify selection.py New script May 25, 2018
Start-from-scratch.py Vanilla required message added Apr 6, 2018
Tabular width checker.py Bug fixed Jan 22, 2018
Use layer as master.py New script Feb 18, 2018
Vertical metrics reporter.py Now with emojis Apr 18, 2018

README.md

ABOUT

Pedro Arilla's scripts for Glyphs app.

INSTALLATION

Choose Open Scripts Folder (Cmd+Shift+Y) in the Script menu in Glyphs. A folder called Scripts will appear in a new Finder window. Put the scripts into this folder. Go back to Glyphs, go to the Script menu, hold down the Option (Alt) key, and choose Reload Scripts (Cmd+Opt+Shift+Y). Yeah! Now you can see and use the scripts from the Script menu.

Please, visit http://www.glyphsapp.com/ for further information.

PS, Some of the scripts require @typesupply's Vanilla. No worries, it’s easy: go to the Glyphs menu, Preferences, Addons, Modules, and finally click on Install Modules. Done!

ABOUT THE SCRIPTS

  • Clear background in all layers: Clears the background in all layers (masters and copies) in all glyphs.
  • Clear background in all master layers: Clears the background in all master layers in all glyphs.
  • Decompose all corner components: Decomposes all corner components in selected glyphs.
  • Decompose all serif components: Decomposes all serif components in selected glyphs.
  • Delete annotations in all layers: Deletes all annotations in all layers (masters and copies) in all glyphs.
  • Delete annotations in all master layers: Deletes all annotations in all master layers in all glyphs.
  • Display next layer: Switches to the next layer of the current glyph within the current master.
  • Display previous layer: Switches to the previous layer of the current glyph within the current master.
  • Duplicate current layer: Duplicates the current layer as a normal glyph layer.
  • Make component glyph for all masters: Builds compound glyphs in the selected ones for all masters.
  • Make lower-unicase font: Makes a lower-unicase font placing the lowercase glyphs (as components) in the uppercasse cells.
  • New tab with random LC non-text: Opens a new tab and outputs random lowercase non-text.
  • New tab with random title non-text: Opens a new tab and outputs random title non-text.
  • New tab with random UC non-text: Opens a new tab and outputs random uppercase non-text.
  • New tabs with KernKing text: Opens two new edit tabs and outputs KernKing text.
  • Scale background in selected glyphs: Scales proportionally (user-definable percentage) the background content in selected glyphs.
  • Select different colour: In Font view, selects glyphs with a different colour(s) as the currently selected one(s).
  • Select partial path: Selects the partial path between the selected nodes in the current glyph — take into account that the script goes through the path starting from the first node.
  • Select paths: Selects the path or paths you are working on—according to the selected nodes.
  • Select small paths: Finds and selects small paths (smaller than a user-definable area) in the current glyph.
  • Selection to all the backgrounds: Replaces in all the glyphs their current content of the background with the selected paths in the current glyph.
  • Set default figures: UI (Vanilla required) for setting the set of numerals selected by the user as default figures. Inserts the figures as components in the ‘Decimal Digit’ cells, enables automatic alignment, and copies kerning groups.
  • Shift background in selected glyphs: Shifts horizontally (user-definable number) the background content in selected glyphs. Positive value for shifting to the right, negative value for shifting to the left.
  • Simplify selection: Simplifies the selected path(s) by deleting one of every two nodes.
  • Start-from-scratch: UI (Vanilla required) for deleting anchors, annotations, backgrounds, guidelines, images, kerning groups, labels, metric keys, non-master layers, and paths and components—in selected/all the glyphs, selected/all the masters, and master/all the layers.
  • Tabular width checker: Checks all selected Glyphs are on same width. It ignores ‘Auto’ and makes sure that the assigned value is equal regardless of metrics keys.
  • Use layer as master: Sets the current layer as the master layer.
  • Vertical metrics reporter: Reports if vertical metrics in all the masters in all open files are equal.

License

Copyright 2018, Pedro Arilla (@pedroarilla).

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file 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.