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

[write-fonts] Add builder methods to ValueRecord #538

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Jul 20, 2023

These are annoying to construct, and are additionally annoying now that we support both Device & VariationIndex tables; hopefully builder methods will improve this situation.

There is also an additional, more pressing motivation for this work: I am going to need to add support for records that have explicit (non computed) value formats, which will involve adding a private field to ValueRecord, which means a pattern I've used elsewhere of relying on ..Default::default() to fill in missing vlaues will break.

These are annoying to construct, and are additionally annoying now that
we support both Device & VariationIndex tables; hopefully builder
methods will improve this situation.

There is also an additional, more pressing motivation for this work:
I am going to need to add support for records that have explicit (non
computed) value formats, which will involve adding a private field to
ValueRecord, which means a pattern I've used elsewhere of relying on
..Default::default() to fill in missing vlaues will break.
@cmyr cmyr merged commit c41f589 into main Jul 20, 2023
7 checks passed
@cmyr cmyr deleted the value-record-builder branch July 20, 2023 17:04
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.

2 participants