HTLetterspacer icon indicating copy to clipboard operation
HTLetterspacer copied to clipboard

Idea: Per-glyph parameters?

Open madig opened this issue 7 years ago • 1 comments

Some glyphs, like 'l' with a tail, may need a slighlty higher paramDepth relative to the rest to look good. The configuration allows for spacing scaling on a filter basis, but I can't seem to say "apply a depth of 20 to l". The idea is to be able to mindlessly apply the script to the whole font whenever needed without remembering to apply other parameters to 'l'.

madig avatar Nov 01 '17 10:11 madig

I think it is possible and very useful to store specific parameters in userData

layer.userData['paramArea'] = 400

I also think we can use this to force glyphs to change categories, in order to change the behavior (usually I want specific symbols to behave like letters)

font.glyphs['ampersand'].userData['category'] = 'Letter' font.glyphs['ampersand'].userData['subCategory'] = 'Uppercase'

Whatever is in userData will override the global config. The main problem about this is how to to set up and read this information in a friendly way. To set it up in glyphs I can imagine more options in the UI. But how to access the information and make it clear for most users? I'm open to ideas to make this work in the UI.

Danke schön, mein freund. :)

andrestelex avatar May 01 '18 23:05 andrestelex