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

q5-webgpu: Image based text rendering #61

Closed
quinton-ashley opened this issue Jul 17, 2024 · 1 comment
Closed

q5-webgpu: Image based text rendering #61

quinton-ashley opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@quinton-ashley
Copy link
Collaborator

q5's webgpu text could utilize the q5 2d renderer's text image caching system, rendering text as images in webgpu.

I think this is a good approach because:

  • wouldn't require an external library such as OpenType, which p5 depends on
  • canvas2d uses the browser's HTML text renderer (higher quality than gpu rendering)
  • text rendering for the gpu is complex (high performance cost)
@quinton-ashley quinton-ashley self-assigned this Jul 17, 2024
@quinton-ashley quinton-ashley added the enhancement New feature or request label Jul 17, 2024
@quinton-ashley quinton-ashley added this to the WebGPU milestone Jul 17, 2024
@quinton-ashley quinton-ashley changed the title WebGPU text q5-webgpu: text Jul 25, 2024
@quinton-ashley quinton-ashley changed the title q5-webgpu: text q5-webgpu: Image based text rendering Sep 23, 2024
@quinton-ashley
Copy link
Collaborator Author

implemented in v2.4.8 but will be removed in v2.5 in favor of msdf text rendering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant