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

Copy font info attributes from default font to instance selectively #578

Merged
merged 2 commits into from
Sep 9, 2019

Conversation

madig
Copy link
Collaborator

@madig madig commented Sep 9, 2019

Closes #574.

I overlooked that ufoProcessor does the same. Several attributes are actually specific to instances and should not be blindly inherited from the default font.

The ignore list is different from ufoProcessor. We additionally ignore:

  • openTypeNameUniqueID
  • openTypeNameWWSFamilyName
  • openTypeNameWWSSubfamilyName
  • openTypeOS2Panose

We copy over:

  • familyName
  • woffMajorVersion
  • woffMetadataCopyright
  • woffMetadataCredits
  • woffMetadataDescription
  • woffMetadataExtensions
  • woffMetadataLicense
  • woffMetadataLicensee
  • woffMetadataTrademark
  • woffMetadataVendor
  • woffMinorVersion

This implies that the styleName attribute is now implicitly required. Not specifying it in the Designspace means it will not be set in the instance.

I overlooked that ufoProcessor does the same. Several attributes are actually specific to instances and should not be blindly inherited from the default font.

The ignore list is different from ufoProcessor. We additionally ignore:
- openTypeNameUniqueID
- openTypeNameWWSFamilyName
- openTypeNameWWSSubfamilyName
- openTypeOS2Panose

We copy over:
- familyName
- woffMajorVersion
- woffMetadataCopyright
- woffMetadataCredits
- woffMetadataDescription
- woffMetadataExtensions
- woffMetadataLicense
- woffMetadataLicensee
- woffMetadataTrademark
- woffMetadataVendor
- woffMinorVersion

This implies that the styleName attribute is now implicitly required. Not specifying it in the Designspace means it will not be set in the instance.
@madig
Copy link
Collaborator Author

madig commented Sep 9, 2019

Hm. I'll add a warning if stylename isn't set.

@madig madig force-pushed the instantiator-copy-attrs-selectively branch from dfc2579 to deb9cdd Compare September 9, 2019 15:05
@madig madig force-pushed the instantiator-copy-attrs-selectively branch from deb9cdd to 1540244 Compare September 9, 2019 15:12
@madig madig merged commit cced5c5 into master Sep 9, 2019
@madig madig deleted the instantiator-copy-attrs-selectively branch September 9, 2019 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants