Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.9k stars 404 forks source link

Outline effect is not good on some glphys #184

Open sry948749099 opened 1 year ago

sry948749099 commented 1 year ago

like this: aaa

Chlumsky commented 1 year ago

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

sry948749099 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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!