You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far everything is working great, although I did notice that when I use SDL_ttf to render letters, there's a thin gray border around them. When I change the code to remove SDL_gpu and just use vanilla SDL2, no borders, which is what I would expect.
I'm attaching sample output, along with two the C files I used to produce them. (I'm not attaching font files, since I assume you can substitute any files.
This looks like inadvertent color blending with transparent pixels. The best solution for this generally is premultiplied alpha. In this case here, you may be able to get the result you want by setting the filtering mode (GPU_SetImageFilter()) to GPU_NEAREST.
If that's not good enough, let me know to look into this further.
Sorry to say, GPU_SetImageFilter() didn't change anything. FWIW, I'm not sure I'm actually going to end up using SDL_ttf anyway (it's just convenient for prototypes), but of course maybe this issue is indicative of some other potential problem, I don't know. In any case, thanks for the speed reply!
Hi:
Great library, just discovered it!
So far everything is working great, although I did notice that when I use SDL_ttf to render letters, there's a thin gray border around them. When I change the code to remove SDL_gpu and just use vanilla SDL2, no borders, which is what I would expect.
I'm attaching sample output, along with two the C files I used to produce them. (I'm not attaching font files, since I assume you can substitute any files.
Thanks,
Mike
TTF GitHib issue C source.zip
The text was updated successfully, but these errors were encountered: