Skip to content

Support variable fonts in textToPoints + WebGL rendering #7724

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

Merged
merged 2 commits into from
Apr 12, 2025

Conversation

davepagurek
Copy link
Contributor

@davepagurek davepagurek commented Apr 11, 2025

Resolves #7447

Changes:

  • Pass font variable axes into Typr in textToPoints and related methods
  • Update font cache in WebGL with variable axes

Live textToPoints demo: https://editor.p5js.org/davepagurek/sketches/wCF4On-wN

Live WebGL rendering demo: https://editor.p5js.org/davepagurek/sketches/-dHZUbbKb

Note: seems to only work in Chrome for now?

PR Checklist

@davepagurek davepagurek marked this pull request as ready for review April 12, 2025 15:23
@davepagurek davepagurek changed the title Support variable fonts in textToPoints Support variable fonts in textToPoints + WebGL rendering Apr 12, 2025
@davepagurek davepagurek merged commit c9cf088 into dev-2.0 Apr 12, 2025
2 checks passed
@davepagurek davepagurek deleted the variable-text-to-points branch April 12, 2025 15:47
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.

None yet

1 participant