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 codepoints_iter() methods for cmap Subtable4/Subtable12 #174

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MoSal
Copy link

@MoSal MoSal commented Sep 30, 2024

This allows early exit unlike codepoints().

 This allows early exit unlike `codepoints()`.

Signed-off-by: Mohammad AlSaleh <[email protected]>
@MoSal MoSal marked this pull request as draft September 30, 2024 00:43
@MoSal
Copy link
Author

MoSal commented Sep 30, 2024

Not really a draft. But only needed if a change in another crate (PR incoming) is accepted.

Signed-off-by: Mohammad AlSaleh <[email protected]>
@MoSal MoSal marked this pull request as ready for review September 30, 2024 16:03
@@ -1,6 +1,6 @@
[package]
name = "ttf-parser"
version = "0.24.1"
version = "0.25.0"
Copy link
Member

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)) {
Copy link
Member

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?

Copy link
Author

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?

a0ec717

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