SS glyphs and kerning

Hi. How do I do to kern stylistic alternates by default glyphs, for example, a.ss01 v. Ideal situation should be I can select a glyph on type mode and change the menu to stylistic alternate to change only that glyph and not all entered text. Is there any way to achive this without manually add it in kerning table?

Thanks

Does v also have .ss01 alternates? Otherwise it should be easy (just turn the feature on).

If there is a case where you absolutely need to partially use .ss01 glyphs, I would just make a kerning string with Regular Expression.

1 Like

Cmd-F and insert the stylistic set glyph.

Or what I do, activate Font Info > Other > Keep alternates…, type it and then switch to the alternate by pressing fn-right.

On a more general note, if you need to kern partial sets, it may be better to separate your stylistic set into multiple sets, i.e. move v.ss01 to v.ss02 etc.

1 Like

@Tosche yes. My font structure is like Β΄AΒ΄ Β΄A.ss01Β΄ Β΄aΒ΄ Β΄a.ss01Β΄ and I need to test kerning for all combination.
Using cmd-f to insert could work, but it is really tedious. IΒ΄ll try the other method @mekkablue said.

thanks guys!

I mean, if v does not have ss01 alternates, then turning on ss01 feature will automatically convert a string of /a/v into /a.ss01/v.

But really, get yourself a good plain text editor (Sublime Text, TextMate, etc) and learn regular expression. That’s way handier.

Can you guide me on regular expressions for glyphs? itΒ΄s like regular expression in JS?

Oh, I mean making kerning string outside Glyphs.

When you have a string like β€œAABACAD…AZA”, then you can easily make β€œ/A.ss01/B/A.ss01/C…” and paste it back to Glyphs or its sample string (though this particular case is just search & replace).

A little script that can help :slight_smile: It can be improved.

ss=β€˜/a.ss01’

a= β€˜/a.ss01’
b= β€˜/b.ss01’
c= β€˜/c.ss01’
d= β€˜/d.ss01’
e= β€˜/e.ss01’
f= β€˜/f.ss01’
g= β€˜/g.ss01’
h= β€˜/h.ss01’
i= β€˜/i.ss01’
j= β€˜/j.ss01’
k= β€˜/k.ss01’
l= β€˜/l.ss01’
m= β€˜/m.ss01’
n= β€˜/n.ss01’
o= β€˜/o.ss01’
p= β€˜/p.ss01’
q= β€˜/q.ss01’
r= β€˜/r.ss01’
s= β€˜/s.ss01’
t= β€˜/t.ss01’
u= β€˜/u.ss01’
v= β€˜/v.ss01’
w= β€˜/w.ss01’
x= β€˜/x.ss01’
y= β€˜/y.ss01’
z= β€˜/z.ss01’

print β€œ%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s” % (ss, a, ss, b, ss, c, ss, d, ss, e, ss, f, ss, g, ss, h, ss, i, ss, j, ss, k, ss, l, ss, m, ss, n, ss, o, ss, p, ss, q, ss, r, ss, s, ss, t, ss, u, ss, v, ss, w, ss, x, ss, y, ss, z)

1 Like

Too much reduplication. How about this:

abc = "abcdefghijklmnopqrstuvwxyz"
kernLetter = "/%s" % abc[0]
suffix = "ss01"

abcSuffixed = ["/%s.%s" % (letter,suffix) for letter in abc]
kernString = kernLetter + kernLetter.join(abcSuffixed)

print kernString
2 Likes

Much better and concise!
Thanks mekkablue!

ran this in Macro Panel without any result. I am missing something?

Make sure the output is showing, perhaps you need to drag the separator line:

so weird, got the console open as you… nothing happend, even a print β€œhello” doest show

Have you β€˜Use console for script output’ (in preferences) set? Uncheck it.

oh, now works. Also had to restart Glyphs after uncheck it.