-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Supports commonly known IDE invisible characters. #59
Conversation
HassanTaleb90
commented
Aug 11, 2024
•
edited
Loading
edited
Signed-off-by: Hassan Taleb <49780321+HassanTaleb90@users.noreply.github.com>
Signed-off-by: Hassan Taleb <49780321+HassanTaleb90@users.noreply.github.com>
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.
Supports commonly known IDE invisible characters.
That is not the problem introduced by this PR, just remark that drawing invisible characters is kinda broken at the moment, and the performance is subpar. I'm going to merge these awesome changes, and if you want to think about the outstanding issues, I'm happy to welcome your contribution to make it better. |
let frameRect = CGRect(origin: CGPoint(x: segmentFrame.origin.x - layoutFragmentFrame.origin.x, y: segmentFrame.origin.y - layoutFragmentFrame.origin.y), size: CGSize(width: segmentFrame.size.width, height: segmentFrame.size.height)) | ||
|
||
let charSize = symbolString.size(withAttributes: attributes) | ||
print(frameRect, charSize) |
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.
debug leftover?
Signed-off-by: Hassan Taleb <49780321+HassanTaleb90@users.noreply.github.com>
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.
remove print(frameRect, charSize)
Co-authored-by: Marcin Krzyzanowski <marcin@krzyzanowskim.com> Signed-off-by: Hassan Taleb <49780321+HassanTaleb90@users.noreply.github.com>
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.
Verified
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.
LGTM