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

Outline effect is not good on some glphys #184

Open
sry948749099 opened this issue Aug 29, 2023 · 4 comments
Open

Outline effect is not good on some glphys #184

sry948749099 opened this issue Aug 29, 2023 · 4 comments

Comments

@sry948749099
Copy link

like this:
aaa

@Chlumsky
Copy link
Owner

Post the font and all parameters used to generate the SDF.

@sry948749099
Copy link
Author

Post the font and all parameters used to generate the SDF.

Font file:
example.zip

Mode: MSDF
pxRange: 6
font size: 32
render size: 200
shader:
20230830-083459

@Chlumsky
Copy link
Owner

Chlumsky commented Sep 1, 2023

The issue is that there are these tiny edge segments in the corners which are causing that three different edges occupy a very small area in the SDF, which cannot be encoded properly at the target resolution. Removing them would solve this. I might also have an idea how these edges could be ignored in msdfgen without the need to modify the geometry, will try that out in the weekend.

image

@sry948749099
Copy link
Author

The issue is that there are these tiny edge segments in the corners which are causing that three different edges occupy a very small area in the SDF, which cannot be encoded properly at the target resolution. Removing them would solve this. I might also have an idea how these edges could be ignored in msdfgen without the need to modify the geometry, will try that out in the weekend.

image

Thanks for your response, look forward to your good news!

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