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

[subset-cff] Shorten output of encode_num_tp #4709

Merged
merged 2 commits into from
May 12, 2024
Merged

Conversation

dscorbett
Copy link
Collaborator

This optimizes encode_num_tp to return shorter outputs. It is ported from fonttools/fonttools#3492. The reviewer should be extra careful because, unlike in fontTools, HarfBuzz has no unit tests for this function, and also because I am not fluent in C++.

@behdad
Copy link
Member

behdad commented May 11, 2024

Would you have time to add the tests? Or one of us would need to do that? I think it would be a good idea.

@dscorbett
Copy link
Collaborator Author

I can try to add tests. Should they go in test/api/test-subset-cff2.c or a new file?

@behdad
Copy link
Member

behdad commented May 11, 2024

I can try to add tests. Should they go in test/api/test-subset-cff2.c or a new file?

No, keep them easy in src/test-cff.cc

@dscorbett dscorbett force-pushed the optimize-encode_num_tp branch 2 times, most recently from 5ab4c2e to 1f86f00 Compare May 12, 2024 03:16
@behdad behdad merged commit bba0c0e into main May 12, 2024
20 checks passed
@behdad behdad deleted the optimize-encode_num_tp branch May 12, 2024 16: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.

None yet

2 participants