Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style linking names for instances #91

Open
colinmford opened this issue Jun 4, 2024 · 9 comments
Open

Style linking names for instances #91

colinmford opened this issue Jun 4, 2024 · 9 comments

Comments

@colinmford
Copy link
Contributor

colinmford commented Jun 4, 2024

Hi @LettError

In the DS5 spec there are additional names available other than what is shown in the instances tab.

https://fonttools.readthedocs.io/en/latest/designspaceLib/xml.html#instances-element

Most important of those, I think, are the stylemapfamilyname and stylemapstylename elements. These are quite useful for getting style linking to work in static fonts generated from the instances in a Designspace document. If they are left unset, the build tool just makes a best guess as to what NID 1 and 2 in the name table should be, and it could be wrong. I always find myself adding these names in the XML afterwards, which is fine for me but might be confusing for others.

It would be nice to have these names on the instance tab. If not in the table (I know it is quite crowded there and clutter should be kept to a minimum), maybe it could be the first tab on the "info" popup (which currently contains settings for localized names).

If this sounds like an idea you would like to see, I can make a PR to that effect.

@LettError
Copy link
Owner

I hear you. I know these names are useful to set if you're aiming for UFOs. I think there was some reluctance as the columns are crowded and there will be more values that one might need to be set. Weight and width values, if the interpolated numbers need to be adjusted. This is not to dismiss the request, but we need to think about where it should go. @typemytype what do you think?

@typemytype
Copy link
Collaborator

what if we move all the specific naming info to a table in the info section of a instance?

  • postscriptfontname
  • stylemapfamilyname
  • stylemapstylename

with additional button to generate and/or update them

image

instance location are from design process point of view more important, and pushing more the right or even hide them in a scroll is not so nice

@LettError
Copy link
Owner

Ok!

@colinmford
Copy link
Contributor Author

I'm on it

@typemytype
Copy link
Collaborator

@colinmford
Copy link
Contributor Author

@typemytype @LettError Draft PR #92

@typemytype
Copy link
Collaborator

I remember again why its been left out:

Screenshot 2024-06-04 at 18 28 24

The newer instanceDescriptor label "can" support those values.
But I guess it's good to have those values directly available in the UI.

@LettError
Copy link
Owner

I think Colin makes the case that not all designspaces will be variable fonts. Unless we want UFOOperator to also compile the STAT.

@typemytype
Copy link
Collaborator

no, an operator should not compile this (it has a preview through fontTools) but its good when those values are available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants