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

Support gradients when rendering text #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jay3332
Copy link
Owner

@jay3332 jay3332 commented Dec 15, 2022

Limitations:

  • much slower than just rendering a gradient masked to text
  • apart from dynamic dispatch, Rust's type system does not allow for different types of fills in text layouts (e.g. layout.with_basic_text(..., <Rgba>).with_basic_text(..., <LinearGradient>) will not work)

Once these limitations are resolved, they can be merged into main

Limitations:
- much slower than just rendering a gradient masked to text
- apart from dynamic dispatch, Rust's type system does not allow for different types of fills in text layouts (e.g. `layout.with_basic_text(..., <Rgba>).with_basic_text(..., <LinearGradient>)`  will not work)

Once these limitations are resolved, they can be merged into `main`
@jay3332 jay3332 temporarily deployed to benchmarks December 15, 2022 18:30 — with GitHub Actions Inactive
@jay3332 jay3332 mentioned this pull request Apr 4, 2023
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