Closed Jaszczolt closed 4 years ago
Is there a solution to this? I stumbled across the same problem (when using SDF font rendering) Could it be that the font atlas is too tightly packed? Is there a way to create an "unpacked" atlas?
Yes, there is a border option to enlarge the gap between glyphs. That might be the source of the problem.
Hi, thanks for the heads up, but where can I find/set this border option? I only found a border around the whole atlas texture, but set in code, not as an option
Look at https://github.com/rougier/freetype-gl/blob/master/texture-font.c#L562. But I'm not sure this code is correct. You can try a larger padding to check if it is the source of the problem and if so, we can think of either increasing the value of padding for SDF or having a parameter.
I have also stumbled across this issue which was even more prominent when rotating text. I can confirm that I have solved the issue in my case by adding padding to top and left (which were previously set to 0).
@Findus79 Did that solve the problem ?
Hi, yes updating to a newer version and setting the padding fixes the issue. Thx for the tip! :)
Hi! While rendering text there are weird artefacts. In the photos text is large, but we can see it even when it is much smaller.
When I run demo, there is no problems What causes it? How to get rid of it?