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

[IFT] Implement support for parsing and applying Table Keyed patches #1179

Merged
merged 15 commits into from
Oct 7, 2024

Conversation

garretrieger
Copy link
Contributor

@garretrieger garretrieger requested review from dfrg and cmyr October 4, 2024 21:11
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.

Okay a bunch of little observations mostly around the API, but overall this looks reasonable to me.

incremental-font-transfer/src/font_patch.rs Outdated Show resolved Hide resolved
incremental-font-transfer/src/font_patch.rs Outdated Show resolved Hide resolved
incremental-font-transfer/src/font_patch.rs Show resolved Hide resolved
incremental-font-transfer/src/font_patch.rs Outdated Show resolved Hide resolved
incremental-font-transfer/src/font_patch.rs Outdated Show resolved Hide resolved
incremental-font-transfer/src/font_patch.rs Outdated Show resolved Hide resolved
incremental-font-transfer/src/font_patch.rs Outdated Show resolved Hide resolved
incremental-font-transfer/src/font_patch.rs Outdated Show resolved Hide resolved
resources/codegen_inputs/ift.rs Outdated Show resolved Hide resolved
write-fonts/generated/generated_ift.rs Outdated Show resolved Hide resolved
Use this instead of raw arrays in the read-fonts/write-fonts IFT impl.
This new setup hides some of the details like compatibility ID and encoding format. Now a PatchUri (from the patch map) is used to produce a patch object which can be applied directly to an appropriate base.
@garretrieger garretrieger force-pushed the ift_patches branch 3 times, most recently from 7dce5bc to 505f7b1 Compare October 7, 2024 22:44
let Some(stream_length) = next_offset
.checked_sub(offset)
.and_then(|v| v.checked_sub(STREAM_START))
// brotli stream starts at the (u32 tag + u8 flags + u32 length) = 9th byte
Copy link
Member

Choose a reason for hiding this comment

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

this comment is now in the wrong place I think?

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.

👍

@garretrieger garretrieger merged commit 7a6e0c4 into main Oct 7, 2024
10 checks passed
@garretrieger garretrieger deleted the ift_patches branch October 7, 2024 23:14
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