Without wanting to sound like an ass, but if you are not using sfml, this is not the right place to ask.
To show you my goodwill take a look at this:
http://www.learnopengl.com/#!In-Practice/Text-Rendering
You know... maybe before completely driving people away from using SFML, you should actually consider everything the poster
could have meant if what they said was even slightly ambiguous.
The fact that what is described in that article is
exactly what sf::Font conveniently wraps makes your reply less helpful than you might think.
GraphicsWhale, even when rendering the text yourself using OpenGL, you can still use sf::Font as a convenient way to load fonts and get access to its OpenGL glyph texture atlas and metrics.
Here is the
sf::Font example slightly modified to demonstrate basic OpenGL interoperation:
// Declare a new font
sf::Font font;
// Load it from a file
if (!font.loadFromFile("arial.ttf"))
{
// error...
}
const sf::Glyph& glyph = font.getGlyph('A', size, isBold);
float glyphAdvance = glyph.advance;
sf::FloatRect glyphBounds = glyph.bounds;
// The glyph texture coordinates are not normalized (they are in pixels).
sf::IntRect glyphTextureCoords = glyph.textureRect;
sf::Texture::bind(&font.getTexture());
// your OpenGL rendering using the texture here
// normalize the texture coordinates using the actual size of the texture you just bound
sf::Texture::bind(0);
For more information regarding how to use sfml-graphics objects with OpenGL, refer to the
documentation of the respective sfml-graphics classes.