└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Glyphs Resources 2 | A collection of resources for Glyphs App 3 | 4 | # Table of Contents 5 | - [Tips & Tricks](#tips--tricks) 6 | - [Script Collections](#script-collections) 7 | - [Small Scripts/Hacks](#small-scriptshacks) 8 | 9 | --- 10 | 11 | ## Tips & Tricks 12 | 13 | **Table of Contents** 14 | - [Display All Cooridinates](#display-all-cooridinates) 15 | - [Draw Guide from Measurement Tool](#draw-guide-from-measurement-tool) 16 | - [Regenerate Components Inside of Component Glyph](#regenerate-components-inside-of-component-glyph) 17 | 18 | ### Display All Cooridinates 19 | - Hold down `Control + Option + Command` 20 | - Alternatively, switch to the measurement tool (L) 21 | 22 | ### Draw Guide from Measurement Tool 23 | - While using the measurement tool (L), press `G` to create a guide. 24 | 25 | ### Regenerate Components Inside of Component Glyph 26 | - `Shift + Option + Command + C` or Glyph > Make Component Glyph 27 | - Imagine you have an empty /Aacute glyph, but have drawn the /A and the /acutecomb, this will automatically generate them back into the /Aacute glyph 28 | - Extra hot tip: You can select multiple glyphs at once and do this. So if you added your combining diacritic characters before drawing all of your necessary components, there’s no need to individually place components later on. 29 | 30 | --- 31 | 32 | ## Script Collections 33 | - [Alexei Vanyashin](https://github.com/alexeiva/alexei-scripts) 34 | - [Ben Jones](https://github.com/protimient/Glyphs-Scripts) 35 | - [Daniel Gamage](https://github.com/danielgamage/Glyphs-Scripts) 36 | - [Eli Heuer](https://github.com/eliheuer/vanilla-free-glyphs-scripts) 37 | - [Ethan Cohen](https://github.com/ethancohen/Misc-Glyphs-Scripts) 38 | - [Federico Parra](https://github.com/FEDER-CO/Glyphs-Scripts) 39 | - [Felipe Negrão](https://github.com/filipenegrao/glyphsapp-scripts) 40 | - [Georg Seifert](https://github.com/schriftgestalt/Glyphs-Scripts) 41 | - [Google Fonts](https://github.com/googlefonts/gf-glyphs-scripts) 42 | - [Guido Ferreyra](https://github.com/guidoferreyra/Glyphs-Scripts) 43 | - [Harbor Type](https://github.com/harbortype/glyphs-scripts) 44 | - [Huerta Tipografica](https://github.com/huertatipografica/huertatipografica-scripts) 45 | - [Jens Kutilek](https://github.com/jenskutilek/Glyphs-Scripts) 46 | - [Just Another Foundry - Freemix](https://github.com/justanotherfoundry/freemix-glyphsapp) 47 | - [Just Another Foundry - Font Production](https://github.com/justanotherfoundry/font-production) 48 | - [Kyle Wayne Benson](https://github.com/kylewaynebenson/Glyphs-Scripts) 49 | - [Marc Foley](https://github.com/m4rc1e/mf-glyphs-scripts) 50 | - [Marcin Dybaś](https://github.com/dyyybek/Glyphs-Scripts) 51 | - [Mark Fromberg](https://github.com/Mark2Mark/Glyphsapp-Scripts-Free) 52 | - [Matthew Smith](https://github.com/mttymtt/Glyphs-Scripts) 53 | - [Mekkablue (Rainer Erich Scheichelbauer)](https://github.com/mekkablue/Glyphs-Scripts) 54 | - [Mike LaGattuta](https://github.com/mjlagattuta/Glyphs-Scripts) 55 | - [Olli Meier](https://github.com/moontypespace/omScripts) 56 | - [Pedro Arilla](https://github.com/pedroarilla/glyphs-scripts) 57 | - [Robert Janes](https://github.com/robertjanes/Glyphs-Scripts) 58 | - [Sebastian Carewe](https://github.com/eweracs/glyphs-scripts) 59 | - [Simon Cozens](https://github.com/simoncozens/GlyphsScripts) 60 | - [Stephen Nixon](https://github.com/thundernixon/glyphs_scripts) 61 | - [Tosche](https://github.com/Tosche/Glyphs-Scripts) 62 | - [Underscore Type](https://github.com/underscoretype/underscore-glyphs-scripts) 63 | - [Wei Huang](https://github.com/weiweihuanghuang/wei-glyphs-scripts) 64 | 65 | --- 66 | 67 | ## Small Scripts/Hacks 68 | These are small scripts you can run in the macro panel to do various things inside of Glyphs. Most often, they have to do with how Glyphs performs as opposed to editing your actual work. 69 | 70 | **Table of Contents** 71 | - [Change Macro Panel Font Size](#change-macro-panel-font-size) 72 | - [Export Instances as UFOs](#export-instances-as-ufos) 73 | - [Fetch Names and Unicode values of all Glyphs in Font](#fetch-names-and-unicode-values-of-all-glyphs-in-font) 74 | - [Hide Metrics in Text View](#hide-metrics-in-text-view) 75 | - [Name Guideline](#name-guideline) 76 | - [Save Vector Screenshot of Glyphs Window](#save-vector-screenshot-of-glyphs-window) 77 | 78 | ### Change Macro Panel Font Size 79 | When in the Macro Panel simply press Command–Plus sign (+) or Command–Minus sign (-) 80 | or 81 | Use the following script in the Macro Panel. 12 in the example below represents the font size. 82 | 83 | ``` 84 | Glyphs.intDefaults["MacroCodeFontSize"] = 12 85 | ``` 86 | 87 | ### Export Instances as UFOs 88 | Glyphs built-in export as UFOs option only exports the masters, so if you need to export all of the instances or certain instances as UFOs, you can use the following script: 89 | 90 | ``` 91 | import os 92 | for instance in Font.instances: 93 | instance.generate(UFO, os.path.expanduser("~/Desktop")) 94 | ``` 95 | 96 | There are two more options `UseProductionNames (default True)` and `DecomposeSmartStuff (default True)`. In which case, the code would look like: 97 | 98 | ``` 99 | import os 100 | for instance in Font.instances: 101 | instance.generate(UFO, os.path.expanduser("~/Desktop"), UseProductionNames=False, DecomposeSmartStuff=False) 102 | ``` 103 | 104 | 105 | 106 | ### Fetch Names and Unicode values of all Glyphs in Font 107 | 108 | ``` 109 | font = Glyphs.font 110 | 111 | for i in font.glyphs: 112 | if i.unicode: 113 | print i.name + " - " + i.unicode 114 | ``` 115 | 116 | ### Hide Metrics in Text View 117 | When the text tool is selected, the side-bearing values are visible beneath each glyph. By default, these metrics are hidden when the text is viewed at 75pt or smaller. To hide them at larger sizes, run the code below in the Macro panel. In this example, the metrics will be hidden at any size under 151pt. 118 | 119 | ``` 120 | Glyphs.intDefaults["TextModeNumbersThreshold"] = 151 121 | ``` 122 | 123 | ### Name Guideline 124 | This will add a name to your guideline. Just select one guideline, then run the script in the macro panel. 125 | 126 | ``` 127 | Layer.selection[0].name = "Guide Name Here" 128 | ``` 129 | 130 | ### Save Vector Screenshot of Glyphs Window 131 | This prompts a print dialog box for your Glyphs Window. Click on “PDF” in the lower left hand corner and then choose “Save as PDF.” 132 | 133 | ``` 134 | Font.currentTab.graphicView().window().print_(None) 135 | ``` 136 | --------------------------------------------------------------------------------