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

Supports commonly known IDE invisible characters. #59

Merged
merged 4 commits into from
Aug 11, 2024

Conversation

HassanTaleb90
Copy link
Contributor

@HassanTaleb90 HassanTaleb90 commented Aug 11, 2024

Screenshot 2024-08-11 at 5 31 57 PM

Signed-off-by: Hassan Taleb <49780321+HassanTaleb90@users.noreply.github.com>
@CLAassistant
Copy link

CLAassistant commented Aug 11, 2024

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Hassan Taleb <49780321+HassanTaleb90@users.noreply.github.com>
Copy link
Contributor Author

@HassanTaleb90 HassanTaleb90 left a 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.

@HassanTaleb90 HassanTaleb90 changed the title Supports invisible new line character (represented as ¬) Supports commonly known IDE invisible characters. Aug 11, 2024
@krzyzanowskim
Copy link
Owner

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.

Screenshot 2024-08-11 at 17 07 14

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)
Copy link
Owner

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>
Copy link
Contributor Author

@HassanTaleb90 HassanTaleb90 left a 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>
Copy link
Contributor Author

@HassanTaleb90 HassanTaleb90 left a comment

Choose a reason for hiding this comment

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

Verified

@krzyzanowskim krzyzanowskim self-requested a review August 11, 2024 15:20
Copy link
Owner

@krzyzanowskim krzyzanowskim left a comment

Choose a reason for hiding this comment

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

LGTM

@krzyzanowskim krzyzanowskim merged commit f369db5 into krzyzanowskim:main Aug 11, 2024
1 check passed
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.

3 participants