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

Support panose from variable font export settings #1272

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

rsheeter
Copy link
Contributor

Makes panose match for GSC. JMM if happy.

@rsheeter rsheeter added this to the fontc 0.1.0, usable for GSC milestone Feb 13, 2025
Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought, otherwise seems reasonable!

Comment on lines +2596 to +2601
pub fn instance(&self, master: &FontMaster) -> Option<&Instance> {
self.instances
.iter()
.find(|i| i.active && i.type_ == InstanceType::Variable && i.name == master.name)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is only being used to find the default instance, maybe just a default_instance fn that didn't need to have the master passed in would be easier?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are going to be mroe cases

@rsheeter rsheeter added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit 4935617 Feb 13, 2025
11 checks passed
@rsheeter rsheeter deleted the even_more_panose branch February 13, 2025 19:42
@anthrotype
Copy link
Member

technically that's not an "instance" but a "variable font export setting" (they reused the same instance object and tacked on it a 'variable' attribute)
https://handbook.glyphsapp.com/exports/

@anthrotype anthrotype changed the title Support panose from instances Support panose from variable font export settings Feb 14, 2025
@rsheeter rsheeter mentioned this pull request Feb 14, 2025
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

Successfully merging this pull request may close these issues.

3 participants