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

Missing sFamilyClass in OS/2 table #330

Closed
wyuenho opened this issue Jul 19, 2020 · 6 comments
Closed

Missing sFamilyClass in OS/2 table #330

wyuenho opened this issue Jul 19, 2020 · 6 comments

Comments

@wyuenho
Copy link

wyuenho commented Jul 19, 2020

I've recently tried to filter all installed fonts on my mac in objective-c, macOS's CoreText has the ability to filter font descriptors by font family classes such as old style serif, slab serif and so on. When I was investigating why all the IBM Plex fonts are grouped as unknown, I've come across the TrueType OS/2 table and the sFamilyClass. It appears AppKit simply relies on the data in this field to return the font family class info. This field is missing in all IBM Plex fonts. It would be nice if this can be filled in.

@BoldMonday
Copy link
Collaborator

Interesting. The sFamilyClass is quite an outdated system for defining descriptors. And so far we never heard about any software that implements it.

In general the PANOSE values in the OS/2 table provide a more detailed mechanism for defining font family characteristics, and for IBM Plex we made sure that these are defined as detailed as possible. Is it possible for AppKit to return those values?
https://docs.microsoft.com/en-us/typography/opentype/spec/os2#panose

@wyuenho
Copy link
Author

wyuenho commented Jul 20, 2020

Given AppKit simply delegates to CoreText, I just took a look at CoreText's documentation, it appears it only defines constants for the family classes in the OS/2 table https://developer.apple.com/documentation/coretext/ctfontstylisticclass

@BoldMonday
Copy link
Collaborator

BoldMonday commented Jul 20, 2020

The tool chain used for generating IBM Plex fonts (Adobe’s open source AFDKO suite) is currently not able to write custom values for this particular field in the OS/2 table. I've submitted an issue and it’s marked as a future enhancement.

We will update the IBM Plex source files and regenerate fonts as soon as this feature is implemented in the AFDKO.

Please bear in mind that this particular classification is still very limited in its scope of stylistic variations and also Latin centric.

@BoldMonday BoldMonday removed their assignment Sep 29, 2021
@BoldMonday
Copy link
Collaborator

Release v6.0.0 fixes this issue for a number of Plex family members. See release notes concerning FamilyClass value in OS/2 table.

@tay1orjones
Copy link
Member

Hey there! v6.1.0 was just released that references this issue.

Comment here or join the release discussion to provide feedback or voice concerns. Thanks!

@tay1orjones
Copy link
Member

Hey there! v6.3.0 was just released that references this issue.

Comment here or join the release discussion to provide feedback or voice concerns. 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

4 participants