I’m using a PNG file with transparency, but it’s not working after this code.
foreach(char i; 32 .. 126 + 1) {
SDL_Surface* surf = SDL_CreateRGBSurface(0, width, height - 1, 32, 0,0,0,0x00);
scope(exit)
SDL_FreeSurface(surf);
SDL_Rect rsrc = {1 + (i - 33) * step, 1, width, height - 1};
SDL_BlitSurface(source, &rsrc, surf, null);
tletters[i] = SDL_CreateTextureFromSurface(gRenderer, surf);
}