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

SDF Metadata used in different shaders not read and stored in Font #1229

Open
lusius opened this issue Aug 27, 2024 · 2 comments
Open

SDF Metadata used in different shaders not read and stored in Font #1229

lusius opened this issue Aug 27, 2024 · 2 comments

Comments

@lusius
Copy link
Contributor

lusius commented Aug 27, 2024

Using an alternative SDF rendering technique that seems to work better for rendering small text in our case, needs additional metadata information from the fontfile.

Getting this data can be added in FontParser and stored as new variables in h2d.Font

Exampel code is found here:
https://github.com/Chlumsky/msdfgen

image
image

@lusius
Copy link
Contributor Author

lusius commented Aug 27, 2024

Adding code in a sec.

@lusius
Copy link
Contributor Author

lusius commented Aug 27, 2024

Related mr

#1230

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

No branches or pull requests

1 participant