Open bluebear94 opened 9 months ago
having similar issue with some letters
Font:
https://www.fontsquirrel.com/fonts/open-sans "OpenSans-Regular.ttf"
Command:
msdfgen.exe -font OpenSans-Regular.ttf 'M' -size 32 32 -testrender test.png 128 128
Output:
Render:
I have also been having some rendering glitches on symbols. I have attached a shape file with the problematic symbol. I don't use Skia, so I use the flag -nopreprocess, although there are different artefacts when using Skia. I use a resolution of 126 by 126 to render this symbol. I also don't use -autoframe. There are limitations that prevent me from changing the resolution or from using -autoframe in my software environment.
msdfgen.exe -shapedesc shape_61498.shape -size 126 126 -testrender render.png 126 126 -testrendermulti output.png 126 126 -nopreprocess
@AndrewPech6-dev If you don't use Skia preprocess, then you have to pass in a shape without self intersections:
But yes, distance fields can't deal very well with these angles:
Thank you, I did not see that intersection. I have other intersection tools that I can use to resolve this. Thanks for the quick response, I'll know what to look for next time I come across similar issues.
To reproduce: Save the following as
shape.txt
:(Taken from the
a
glyph in Inter. For various reasons, this isn’t reproducible by letting msdfgen load the glyph from the font file.)Run:
When the resulting distance field is rendered, there is an artifact near the tail of the
a
:The artifact is less pronounced when
-scale 0.99
or-scale 1.01
is passed in.