Skip to content

Rewrite Text Rendering#10

Merged
The-Jonsey merged 2 commits into
masterfrom
feature/Rewrite-Text-Renderer
Apr 7, 2026
Merged

Rewrite Text Rendering#10
The-Jonsey merged 2 commits into
masterfrom
feature/Rewrite-Text-Renderer

Conversation

@The-Jonsey

Copy link
Copy Markdown
Member

Rewrote text rendering to use font.Drawer instead of gg, which speeds up text rendering. Included in the updated text rendering is the addition of:

  • Horizontal Alignment for text, options are Left, Right and Middle
  • Overflow options, currently Wrap and Fade (actual fading is WIP, currently it just overflows off the image)
  • Arbitrary text anchoring: an image.Point can be used to set an anchor point with text, and when combined with alignments, the alignments indicate the position of the text the anchor will be in, e.g., BOTTOM & RIGHT will put the anchor in the bottom right of the text, so all text will be up and left of it

@The-Jonsey The-Jonsey merged commit 64329d0 into master Apr 7, 2026
4 checks passed
@The-Jonsey The-Jonsey deleted the feature/Rewrite-Text-Renderer branch April 7, 2026 17:25
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.

1 participant