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

[ttLib] meta table should allow multiple records for some tags #2345

Open
moyogo opened this issue Jun 25, 2021 · 3 comments
Open

[ttLib] meta table should allow multiple records for some tags #2345

moyogo opened this issue Jun 25, 2021 · 3 comments

Comments

@moyogo
Copy link
Collaborator

moyogo commented Jun 25, 2021

The OpenType 1.8.4 Meta table mentions:

If only one record or value is permitted for a tag, then any instances after the first may be ignored.

So some tags may permit only one record and others may permit multiple records.

FontTools currently stores the data as a dictionary, which only permits one record per tag.

@schriftgestalt
Copy link
Contributor

I was about to report this, too. And for round-tripping it would be good to be able to store the order of the elements.

@benkiel
Copy link
Collaborator

benkiel commented Aug 3, 2021

Are there any tags that allow multiple records? Looking at the spec, the two defined tags do not.

@schriftgestalt
Copy link
Contributor

The spec explicitly mentions what to do when there are more than one. So even if there are no defined tags that allow it, it seems that it is allowed. And fontTools should preserve them even if it is not useful right now.

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