Skip to content

NRGBA -> RGBA for text rasterize#6253

Merged
dweymouth merged 1 commit into
fyne-io:developfrom
redawl:rgba_strings
Apr 6, 2026
Merged

NRGBA -> RGBA for text rasterize#6253
dweymouth merged 1 commit into
fyne-io:developfrom
redawl:rgba_strings

Conversation

@redawl

@redawl redawl commented Apr 6, 2026

Copy link
Copy Markdown
Member

Take advantage of the RGBA fast path in golang.org/x/image for text rasterization.

Helps with the stuttering in #6233

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 60.436% (+0.01%) from 60.426% — redawl:rgba_strings into fyne-io:develop

@dweymouth dweymouth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is also a fast path on imgToTexture for RGBA, but NRGBA necessitates conversion to RGBA before uploading as a GPU texture, so switching to RGBA as the source image here is definitely the right move irrespective of the golang/x/image fast path.

@dweymouth dweymouth merged commit 21a1c79 into fyne-io:develop Apr 6, 2026
11 checks passed
@redawl redawl deleted the rgba_strings branch April 6, 2026 23:54
andydotxyz pushed a commit that referenced this pull request May 7, 2026
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