Skip to content

Refactor sdf text layout #603

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Refactor sdf text layout #603

wants to merge 4 commits into from

Conversation

Drulokia
Copy link
Collaborator

xOffsets and yOffsets where not taken into account.
Some languages/fonts had larger offsets in the negative which caused the text to be outside of the textnode bounds. (Clipping would cut of the text). This is fixed now.

@Drulokia Drulokia marked this pull request as draft June 29, 2025 09:58
@Drulokia
Copy link
Collaborator Author

Vertical Align on text is not working

@Drulokia Drulokia marked this pull request as ready for review July 9, 2025 07:00
Copy link
Collaborator

@jfboeve jfboeve left a comment

Choose a reason for hiding this comment

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

Ola, I've reviewed the code and would like to see the following changes:

@Drulokia Drulokia requested a review from jfboeve July 16, 2025 10:04
@wouterlucas
Copy link
Contributor

Can we start moving this into #585 or the feat/text-refactor branch as I want to move forward with the refactored text rendering code.

That way we can get all enhancements in 1 place.

We should align once we're happy to start pushing this into a beta together with #585 to get some early tests in.

@wouterlucas wouterlucas linked an issue Jul 21, 2025 that may be closed by this pull request
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.

SDF Text Layout Refactor
3 participants