Copy TrueType Deltas from one Instance to another

Is there a way to copy deltas from one instance to another?
It would save me a lot of time.
Bold Condensed > Bold Narrow > Bold > Bold Extended
Regular Condensed > Regular Narrow > Regular > Regular Extended
etc.
Since these are on the same height, they could use the same deltas.

My wish would be:
Custom Parameter: Get Deltas From Instance
or a script that copies deltas from one instance to another.

Do you mean glyph or zone deltas?

Hi @GeorgSeifert, thanks for the fast reaction.
I mean Glyphs deltas.
If these are able to be accessed via python, I could try to write my own script.
But maybe someone already has written one.

The deltas are accessible with python. I’ll send you a snippet, soon.

Just out of curiosity: how many deltas do you have and what are you doing with them?

The deltas are in the hint.settings["deltaV"]

{
    deltaV =     {
        "{0, 0, 0, 0, 0, 0}" =         {
            10 = 8;
        };
    };
}

You get this "{0, 0, 0, 0, 0, 0}" form instance.instanceKey(). Does this help?

Hey Georg,
Thanks a lot for the hint below. I’ll look into it later.
I’m hinting a family with a lot of single weights and four width styles.
The accents on uppercase are placed so low, that the anchor method is not sufficient.
This results in a lot of deltas (not full pixels, but I used 10th steps).

I did a similar thing a while back with full pixels, then I would just copy the pattern of green up arrows in the pop-up over from one width to another. But since I did those more detailed, copying them by script seems a better solution.

Could you send me the file? I like to check something.

I was just digging into the code … I’ll send you an email.
Thanks a lot!

I could improve the truetype instruction code that the deltas are not needed any more.

1 Like

Thank you so much! You saved my day. 3.3 3330 FTW!