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

MSDF #524

Open
crystalthoughts opened this issue Mar 9, 2025 · 3 comments
Open

MSDF #524

crystalthoughts opened this issue Mar 9, 2025 · 3 comments

Comments

@crystalthoughts
Copy link

Hi, does SDL use multi-channel signed distance functions for its SDF handling?
See:
https://github.com/Chlumsky/msdfgen

@slouken
Copy link
Collaborator

slouken commented Mar 9, 2025

No, we use the SDF support built into FreeType, however we'll accept a well written PR that adds MSDF support.

@crystalthoughts
Copy link
Author

Out of interest would you guys see it as an extra option or a replacement for the default method?

@slouken
Copy link
Collaborator

slouken commented Mar 9, 2025

It would be an extra option. SDF just uses the alpha channel, while MSDF uses the full set of RGBA channels, so it's a different data format and requires different shaders by the application.

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

2 participants