Rendering text with shaders

Does anyone know how I might go about rendering text using a shader? Passing true type font through a shader as-is makes the letters render as oddly shaped blocks. I saw this thread from @jroge: text effects (text + shaders), but it’s from 2008 and the links are deprecated.

Nvm. In case anybody’s curious,

shader.setUniformTexture("tex", text.getFontTexture(), 0);

and sampling it like any other texture works, so long as you’re not overriding the alpha in the shader.