Tosche / Glyphs-Scripts

Tosche's Python scripts for glyphs
Apache License 2.0
77 stars 24 forks source link

Update Copy Kerning Pairs.py #29

Closed kosbarts closed 8 months ago

kosbarts commented 8 months ago
  1. In Pair mode you can leave empty the "... to this pair" side if it is identical with the top side (i.e. if copying from... T - o ... to ... T - e ... the second T can be omitted.) It works on both sides.

  2. Caps to Sc now searches also for glyphs marked c2sc and copies them (useful for punctuation i.e. A? will be copied to a.sc - question.c2sc if the glyph question.c2sc exists)

  3. Added the option "Punctuation to Small Caps". This copies regular punctuation to small caps (not c2sc punctuation).

  4. Added "Default" as an option in the Numeral categories since without it you needed the defaults to be ln.

  5. The Punctuation list is not manual any more; instead it automatically gets all glyphs from "Punctuation" and "Symbol" categories. This applies to both the checks in 3 as well as with the Numerals.

  6. I had some issues and decided to add a (rough) debug report for what happens in Preset mode. It spits lists that can be used to check if things break. I prefer to run the script first on a copy of the file and then check for the result and this proved to be very helpful.