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

Improve Text tool click targets on text layers to use the text box #2145

Merged
merged 5 commits into from
Dec 28, 2024

Conversation

Nitish-bot
Copy link
Contributor

Closes #2128

@Keavon Keavon changed the title Improve text select Improve text click targets to be more lenient instead of using the exact glyph geometry Dec 20, 2024
@Keavon Keavon marked this pull request as draft December 21, 2024 02:39
@Keavon
Copy link
Member

Keavon commented Dec 21, 2024

If/when this is in a fully working state and ready for QA and code review, please mark it as not a draft (the "Ready for Review" button). Thanks.

@Nitish-bot Nitish-bot marked this pull request as ready for review December 28, 2024 19:58
Comment on lines +320 to +321
let far = graphene_core::text::bounding_box(text, buzz_face, font_size, line_height_ratio, character_spacing, None);
let quad = Quad::from_box([DVec2::ZERO, far]);
Copy link
Member

Choose a reason for hiding this comment

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

Farquaad_portrait

Copy link
Member

@Keavon Keavon left a comment

Choose a reason for hiding this comment

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

This is actually a really nice improvement!

@Keavon Keavon changed the title Improve text click targets to be more lenient instead of using the exact glyph geometry Improve Text tool click targets on text layers to use the text box Dec 28, 2024
@Keavon
Copy link
Member

Keavon commented Dec 28, 2024

Please comment in the original issue so I can assign it to you.

@Keavon Keavon enabled auto-merge (squash) December 28, 2024 22:03
@Keavon Keavon merged commit 2293da7 into GraphiteEditor:master Dec 28, 2024
4 checks 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.

Make Text tool use click targets based on rectangles instead of precise glyph shapes
2 participants