Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Implement CTLine and CTRunGetImageBounds - #1991

Merged
Allen Ballway (aballway) merged 2 commits into
microsoft:developfrom
aballway:ct
Feb 18, 2017
Merged

Allen Ballway (aballway) merged 2 commits into
microsoft:developfrom
aballway:ct

Conversation

@aballway

Copy link
Copy Markdown
Contributor

Fixes #1981

#pragma region CGPoint
inline bool operator==(const CGPoint& lhs, const CGPoint& rhs) {
return ((std::abs(lhs.x - rhs.x) < 0.00001) && (std::abs(lhs.y - rhs.y) < 0.00001));
return lhs.x == rhs.x && lhs.y == rhs.y;

Choose a reason for hiding this comment

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

This will almost certainly make tests fail on ARM. We had these set up for a reason. What's up?

Choose a reason for hiding this comment

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

Oh, I see. Interesting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Tests passed on ARM

@aballway

Copy link
Copy Markdown
Contributor Author

Leading, which is some added space above a line typesetters use for multiline text, is not part of the image bounds.
There was a bug in CTRunGetTypographicBounds for ranges with location > 0

@aballway
Allen Ballway (aballway) merged commit 1a10b46 into microsoft:develop Feb 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants