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

Add 'serde' feature to read/write-fonts #396

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Add 'serde' feature to read/write-fonts #396

merged 1 commit into from
Sep 20, 2023

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented May 9, 2023

This is intended to be used to serialize test cases in write-fonts; it is also added in read-fonts since write-fonts reuses flags and enums declared in read-fonts.

One funny thing: (I think) this hit a serde bug around using non-literals to provide default values for const generics, which we do in the OffsetMarker types in write-fonts; I've opened an issue upstream at serde-rs/serde#2449

@cmyr
Copy link
Member Author

cmyr commented Jun 8, 2023

I'm holding out on this because I don't want to merge until I have a clear use. My intended use for this is to create binary dumps of real-world tables that require special handling (extension promotion or table splitting) and then use those in integration tests, but I'm leaving this as a draft until I actually get around to building that infrastructure.

@cmyr cmyr marked this pull request as draft June 8, 2023 15:22
@cmyr cmyr force-pushed the serde-write-fonts branch 2 times, most recently from 0af4ac3 to b2aa2ed Compare September 5, 2023 14:13
This is intended to be used to serialize test cases in write-fonts; it
is also added in read-fonts since write-fonts reuses flags and enums
declared in write-fonts.

One funny thing: (I think) this hit a serde bug around using
non-literals to provide default values for const generics, which we do
in the OffsetMarker types in write-fonts.
@cmyr cmyr marked this pull request as ready for review September 20, 2023 16:21
@cmyr cmyr merged commit e73130f into main Sep 20, 2023
9 checks passed
@cmyr cmyr deleted the serde-write-fonts branch September 20, 2023 16:22
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