Custom Names for Character Variants

Hey there,

is it possible to give “Character Variants” custom names?
Or is there any other option to provide named alternatives for individual glyphs without having a “Stylistic Set” for every single variant?

Kind regards, Simon

(I know there already was a discussion about this topic a year ago, but I think it wasn’t really solved there.)

1 Like

You can add a name attribute into the code but I am afraid it is not supported anywhere.

Do you mean the support in design programmes?
In Figma it’s possible to see names of “Character Variants”.

Can you tell me how I add such a name attribute?

Look at ‘UI Label names for Character Variant features’:

Never tried it myself, though. YMMV.

1 Like

Okay, I will have look there.
Thank you!

You can also add UI names for Stylist Set features, but with ssXX features what you can describe is severely limited: just the name of the feature. With cvXX features you can also give the names of non-default values and other things like tooltips, sample strings, etc.

I had thought about adding the same UI but quickly realized that is it not sufficient. And building a proper one was too much work.

@GeorgSeifert Could it be possible to have at least an entry to set FeatUILabelNameID ?
Even though I’m aware that most apps don’t read or access any cvParameters, it could still be useful :smiling_face_with_tear:

Setting FeatUILabelNameID in code works:

I know Florian, but that mean code need to Generate feature automatically need to be turned off. Ideally I would like to keep it enable, and set FeatUILabelNameID

This could also help manage cv and clearly identify each different entry. Because right now entry title can’t be edited.

Screenshot 2023-12-15 at 15.15.10

You can keep the automatic feature enabled and add the feature name code in the notes section below the actual feature code:

If you don’t see the notes section at the bottom, click and drag from the bottom of the code editor frame (just above the gray bar at the bottom of the Font Info window).

3 Likes

Hello, I am trying to work with this as well, since the limitation of 20 stylistic sets is not enough. I would need 21. So, first question: Is a cv a suitable “extension” for when stylistic sets are not enough?

I have one request (apart from a request for a naming UI, of course): Would it be possible to improve the text entry at the bottom? Every time I switch windows (for example, back to the Glyphs forum in order to remember the corrext text to enter from Florian’s screenshot), the cursor goes away and I have to click back into the window. Furthermore, the indent is not automated, I need to indent manually after every line.

The most annoying thing, though, is the Smart Quotes feature of macOS. Is there a way of disabling it in this text entry? Thanks!

This is regular feature code that you can write in the code editor. No need to use the feature notes.

Smart quotes are disabled for me in the feature notes:

Smart quotes also depend on the system-wide settings (but never enabled in the main code editor).

I added some more safeguards to avoid wrong quotes.