Skip to content

Conversation

@davepagurek
Copy link
Contributor

Resolves #8315

Changes:

  • @dhowe figured out that textToPoints/Paths/Contours depends on the current font being applied to textDrawingContext(), so this makes sure it is applied
  • In WebGL mode, there was additional misalignment from 2D mode because 2D canvas context's alignment takes into account the alphabeticBaseline property

Screenshots of the change:
Before:
image

After:
image

Live: https://editor.p5js.org/davepagurek/sketches/VPrz_2Wff

PR Checklist

@davepagurek davepagurek requested a review from dhowe December 3, 2025 17:41
Copy link
Contributor

@dhowe dhowe left a comment

Choose a reason for hiding this comment

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

looks good to me, can we get this merged asap, as I'd like to review the JUSTIFY/BALANCED alignment PR with this in place?

@davepagurek davepagurek merged commit 514df2a into dev-2.0 Dec 3, 2025
5 checks passed
@davepagurek davepagurek deleted the fix/font-align branch December 3, 2025 18:48
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