MetricsMachine Copy Transformation

Wei HuangWei Huang Posts: 89
edited February 2018 in Type Design Software
Hi all, I'm trying to do a simple copy transformation but I have no idea how to do this:

I want to copy all kerning exceptions that oslash has to oslashacute (both have o for left and right kerning group).

I've read the Manual but I can't understand it, I have this setting but the problem is that it actually copies the oslash kerning exceptions into the [o group kerning?:

Also for future reference, this is the image example in the manual

and here's an example text:
One to Many For example, A > or {A*.sc} or or {} will copy the values of all pairs containing A to, , the group containing and the group containing You must explicitly de"ne groups in the Pattern or Replacement if you want to use a group.

How do I even enter that into the Copy panel? 



Replacements Left box: or {A*.sc} or or {}

Replacements right box: ???

This doesn't work, any help is much appreciated!



  • Kent LewKent Lew Posts: 831
    I’ve never found that panel in MetricsMachine to be very useful. In order to be versatile, it ends up being confusing instead.

    Seems like what you want to do would be more easily accomplished with a simple Python script from within your UFO editor:
    f = CurrentFont()

    for (l, r), value in f.kerning.items():
    if l == 'oslash':
    f.kerning[('oslashacute', r)] = value
    # print l, r, value
    if r == 'oslash':
    f.kerning[(l, 'oslashacute')] = value
    # print l, r, value

    Uncomment those 'print' commands if you want to have a report on which oslash pairs were copied.
  • Kent LewKent Lew Posts: 831
    Wei Huang said:
    ??! Sorry, I’m not on Twitter. If you ask a question here, you should expect answers here. If that doesn’t work for you, please just let me know so I don’t waste time trying to try to help next time.
  • I think he means that the question has been answered (by Tal) on Twitter.
  • Kent LewKent Lew Posts: 831
    Oh, okay. Thanks, Mark. If that’s true, then I’m sorry to be so quick to take offense. Like I said: Not on Twitter.
  • I respect that.  :)
  • Thank you for your answer @Kent Lew, I hadn't seen your answer before, meant that everyone can check Twitter for some answers including from Tal.
Sign In or Register to comment.