Skip to content

Nagwa-Limited-Community/Glyphs-MATH-Plugin

Repository files navigation

Glyphs OpenType MATH Plug-in

This is a plug-in for Glyphs app to edit OpenType MATH table data as well as generate MATH table when exporting font.

Installation

Go to Window → Plugin Manger and search for “OpenType MATH Plug-in” and install it.

Restart Glyphs and the plug-in should be ready (when the plug-in is updated, Glyphs should be restarted as well to use the new version).

Usage

Below is a quick reference for using the plug-in. For a more in depth documentation about building math fonts using this plug-in, see the Building OpenType math fonts article.

The plug-in adds some new menu entries:

  • Edit → Edit MATH Constants... for editing font-level MATH table constants. The constants are saved per-master and should be edited for each master. MATH constants dialog
  • Glyph → Edit MATH Variants... for editing glyph-level MATH variants, assembly, and extended shape flag. The assemblies are saved per-master and should be edited for each master, the rest is saved globally and should be the same for all masters. MATH variants dialog
  • View → Show MATH variants and View → Show MATH Assembly draw math variants and extensible assemblies. MATH variants
  • View → Show MATH Italic Correction draws a vertical blue line if there is an anchor named math.ic. This anchor will be used to generate italic correction. Only the x-position is effective, the y-position is ignored.
  • View → Show MATH Top Accent Position draws a vertical magenta line if there is an anchor named math.ta. This anchor will be used to generate top accent position. Only the x-position is effective, the y-position is ignored.
  • View → Show MATH Cut-ins draws green, blue, cyan, and red lines if there are anchors starting with the names math.tr (top right), math.tl (top left), math.br (bottom right), math.bl (bottom left). There can be more than one anchor starting with each prefix (e.g. math.tr.1, math.tr.2, etc) each describing one corner of the glyph. Both x and y-position of the anchor are used to generate the math kerning info. MATH anchors

If the font contains any MATH data, the plug-in will generate MATH table when the font is exported, no extra steps are needed.

Advanced

Sometimes it desired to disable MATH table generation. This can be done by calling the following from Glyphs’s Macro Panel:

Glyphs.defaults["com.nagwa.MATHPlugin.skipExport"] = True

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages