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

[ttffont.js] preferredFamily is undefined in NameTable #3755

Open
yeori opened this issue Jul 29, 2024 · 1 comment
Open

[ttffont.js] preferredFamily is undefined in NameTable #3755

yeori opened this issue Jul 29, 2024 · 1 comment

Comments

@yeori
Copy link

yeori commented Jul 29, 2024

NameTable.preferredFamily is undefined

this.preferredFamily = strings[15];

  • location: src/libs/ttffont.js

The ttf specification says preferredFamily is at nameID 16
(nameID 15 is said to be reserved, which is undefined)

https://learn.microsoft.com/ko-kr/typography/opentype/spec/name#name-ids
https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html

Sample

Font Inter from google fonts at https://fonts.google.com/selection?query=Inter

Inter-Thin.ttf.zip

It has preferredFamily as 'Inter' and preferredSubfamily as 'Thin'

Thanks.

@krrish-sehgal
Copy link

I would like to work on this , Please assign me this issue under hacktoberfest 2024.
Thanks.

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

2 participants