Skip to content

mekkablue/ShowVerticalMetrics

Repository files navigation

ShowVerticalMetrics.glyphsReporter

This is a plugin for the Glyphs font editor by Georg Seifert. After installation, it will add the menu item View > Show Vertical Metrics. You can set a keyboard shortcut in System Preferences.

Vertical Metrics

The plug-in will visualize the parameters hheaAscender, hheaDescender, typoAscender, typoDescender, winAscent, and winDescent, if present in File > Font Info > Masters.

Thanks to @tntype for the idea.

Installation

  1. One-click install Show Vertical Metrics from Window > Plugin Manager
  2. Restart Glyphs.

or:

  1. Download the complete ZIP file and unpack it, or clone the repository.
  2. Double click the .glyphsReporter file. Confirm the dialog that appears in Glyphs.
  3. Restart Glyphs

Usage Instructions

  1. Open at least one glyph in Edit View.
  2. Use View > Show Vertical Metrics to toggle the display of the Vertical Metrics.

You can set a custom color by typing this in Window > Show Macro Panel and pressing the Run button:

Glyphs.defaults["com.mekkablue.ShowVerticalMetrics.color"] = "0.0, 0.5, 0.7"

You can set up to four comma-separated numbers (red, green, blue, alpha) between 0.0 and 1.0. Specifying only one number will only overwrite red, specifying two numbers will overwrite the values for red and green, but keep the others at their default values. If you enter numbers above 1.0, they will be divided by a hundred. So you can also specify "50,80" for 50% red and 80% green and the default blue and alpha values.

You can revert to the default colors by typing this in the Macro Window and pressing the Run button:

del Glyphs.defaults["com.mekkablue.ShowVerticalMetrics.color"]

Requirements

The plugin needs Glyphs 2.4 or higher, running on OS X 10.9 or later. It does NOT work with Glyphs 1.x.

License

Copyright 2015-2017 Rainer Erich Scheichelbauer (@mekkablue). Based on sample code by Georg Seifert (@schriftgestalt).

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.

About

View menu extension for the font editor Glyphs for visualizing vertical metrics.

Resources

License

Stars

1 star

Watchers

4 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages