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 binding for CTRunGetStringIndices #353

Merged
merged 3 commits into from Jan 9, 2020
Merged

Conversation

@maxbrunsfeld
Copy link
Contributor

maxbrunsfeld commented Jan 9, 2020

This PR adds a CTRun::string_indices method, which exposes CoreText's CTRunGetStringIndices/CTRunGetStringIndicesPtr API. The implementation is basically identical to CTRun::glyphs and CTRun::positions.

I added an assertion about the new method in the existing unit test.

@maxbrunsfeld
Copy link
Contributor Author

maxbrunsfeld commented Jan 9, 2020

I added an unrelated commit that just fixes a few warnings in the codebase, because I wanted to depend on this branch in another project. If you'd prefer these fixes not be included in this PR, I can remove that commit.

core-graphics/src/event.rs Outdated Show resolved Hide resolved
@jdm
Copy link
Member

jdm commented Jan 9, 2020

@bors-servo r+
thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Jan 9, 2020

📌 Commit f763977 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jan 9, 2020

Testing commit f763977 with merge d386f28...

bors-servo added a commit that referenced this pull request Jan 9, 2020
Add binding for CTRunGetStringIndices

This PR adds a `CTRun::string_indices` method, which exposes CoreText's `CTRunGetStringIndices`/`CTRunGetStringIndicesPtr` API. The implementation is basically identical to `CTRun::glyphs` and `CTRun::positions`.

I added an assertion about the new method in the existing unit test.
@bors-servo
Copy link
Contributor

bors-servo commented Jan 9, 2020

☀️ Test successful - checks-travis
Approved by: jdm
Pushing d386f28 to master...

@bors-servo bors-servo merged commit f763977 into servo:master Jan 9, 2020
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
@maxbrunsfeld
Copy link
Contributor Author

maxbrunsfeld commented Jan 9, 2020

⚡️Thanks for the quick response!

@maxbrunsfeld maxbrunsfeld deleted the maxbrunsfeld:glyph-run-get-string-indices branch Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.