How to set delta rounding settings of GSHint

Hello, I am trying to figure out how to set these options:

I have tried GSHint.setSettings_(), to no avail.

Never mind, I’m having a different issue related to the fact that the axis order of the project has changed, and thus the settings for the instances don’t correspond to the current instances anymore (in terms of axis locations).

This was quite a headache. Can I make some requests?

Delta instructions are stored with string keys defining the corresponding instance, for example like this:

{
    deltaV = {
        "{1, 84, 0, 0, 0, 0}" = {
            10 = 8;
            11 = 8;
        };
}

where "{1, 84, ..." points to the instance that has the axis coordinates [1, 84].
This key is not updated when the axis order of the font is changed. So I had to change these keys manually, which was too annoying to script, so I just ended up doing it in a text editor.

  1. Would it be possible to update this key when the axis order is changed?
  2. Could the key be something else than a string? I’m not sure whether it’s possible to encode axis locations in a better way, but already not having the {...} wrapping would make transformations a lot easier.
  3. Could a helper method be implemented to manipulate these axis values? Currently, I really find the easiest method is to open the file in a text editor and make the changes there. Luckily, I only had to change about 15 glyphs, but in a project with many more delta hints, this would be really cumbersome.

Thanks!

1 Like