-
Notifications
You must be signed in to change notification settings - Fork 809
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
Implement CTLine and CTRunGetImageBounds #1991
Conversation
@@ -36,7 +36,7 @@ std::basic_ostream<T>& operator<<(std::basic_ostream<T>& os, const CFRange& rang | |||
|
|||
#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; |
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 will almost certainly make tests fail on ARM. We had these set up for a reason. What's up?
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.
Oh, I see. Interesting.
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.
Tests passed on ARM
Leading, which is some added space above a line typesetters use for multiline text, is not part of the image bounds. |
Fixes #1981