-
Notifications
You must be signed in to change notification settings - Fork 72
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 codepoints_iter() methods for cmap Subtable4/Subtable12 #174
base: main
Are you sure you want to change the base?
Conversation
This allows early exit unlike `codepoints()`. Signed-off-by: Mohammad AlSaleh <[email protected]>
Not really a draft. But only needed if a change in another crate (PR incoming) is accepted. |
Signed-off-by: Mohammad AlSaleh <[email protected]>
@@ -1,6 +1,6 @@ | |||
[package] | |||
name = "ttf-parser" | |||
version = "0.24.1" | |||
version = "0.25.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change the version number in PRs. Just the other changes will do and we can set the version as appropriate during the release process.
f(code_point); | ||
} | ||
} | ||
pub fn codepoints(&self, f: impl FnMut(u32)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function name doesn't seam clear to me. Wouldn't something with "map" or "for_each" in the name be more explanatory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the question directed at me?
This allows early exit unlike
codepoints()
.