Skip to content

Add anchored text rotation method, and clarify related docs#7130

Merged
emilk merged 2 commits intoemilk:mainfrom
pmarks:pmarks/text-anchor-rotation
Jun 15, 2025
Merged

Add anchored text rotation method, and clarify related docs#7130
emilk merged 2 commits intoemilk:mainfrom
pmarks:pmarks/text-anchor-rotation

Conversation

@pmarks
Copy link
Contributor

@pmarks pmarks commented Jun 10, 2025

Add a helper method to perform rotation about a specified anchor.

@github-actions
Copy link

Preview available at https://egui-pr-preview.github.io/pr/7130-pmarkstext-anchor-rotation
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@bircni
Copy link
Contributor

bircni commented Jun 10, 2025

maybe also add an example for that to the demos app?

@pmarks
Copy link
Contributor Author

pmarks commented Jun 10, 2025

maybe also add an example for that to the demos app?

Great idea - added it to the Misc Demos: image

@lucasmerlin lucasmerlin added feature New feature or request epaint labels Jun 11, 2025
Copy link
Collaborator

@lucasmerlin lucasmerlin left a comment

Choose a reason for hiding this comment

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

Nice!

@emilk emilk changed the title add anchored text rotation method, and clarify related docs. Add anchored text rotation method, and clarify related docs Jun 15, 2025
@emilk emilk merged commit df2c16e into emilk:main Jun 15, 2025
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

epaint feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

text rotation doesn't respect anchor

4 participants