dadastudio
(Michał Jarociński)
December 7, 2012, 8:26am
1
Hello,
I’ve noticed that MetricsMachine can copy (and other stuff like scaling) kerning from Caps to SmallCaps - so there is no need to space and kern smallcaps separately.
Can I do this in Glyphs? Is there a script that could copy kerning pairs and classes and for example multiply values by some percent?
mekkablue
(Rainer Erich Scheichelbauer)
December 7, 2012, 10:47am
2
I don’t know if there already is such as script but I do think it’s possible via scripting: the Font object has a kerning property (http://docu.schriftgestaltung.de/#kerning ) and three functions for manipulating kerning info (http://docu.schriftgestaltung.de/#kerningForPair ).
I did a quick something that is limited to A-Z, I could only do very limited testing, but so far this worked for me: http://pastebin.com/7dMf7Ac2
Glyphs can read/write UFOs, so you can use MetricsMachine in your workflow.
mekkablue
(Rainer Erich Scheichelbauer)
December 7, 2012, 10:50am
3
For the script I pasted above, it’s a good idea to have Georg’s Set Kerning Groups script do the kern-grouping first.
mekkablue
(Rainer Erich Scheichelbauer)
December 7, 2012, 11:04am
4
Plus, keep your kerning window closed while the script is running. Somehow, otherwise Glyphs seems to have problems updating Edit View.
dadastudio
(Michał Jarociński)
December 7, 2012, 1:45pm
5
Ok thank You, I will play around with it.
Finally I have motivation to dive deep into scripting
BureauRoffa
(Jasper de Waard)
January 4, 2017, 3:38pm
6
@dadastudio Did you manage to extend the script, and/or make it work with a full character set?
Regards,
Jasper de Waard
dadastudio
(Michał Jarociński)
January 4, 2017, 5:07pm
7