How to keep all of the glyphs on a single texture? (SDL_ttf)

You can look for example font atlas code here: Signed Distance Field Fonts