Just wanted to point out that tabs don't work with sf::String. Looking at the code, you are using 4x the advance of a tab character... but a tab is not a printable character, so probably won't have a valid glyph. Perhaps you should use 4x the advance of a space (which is a printable character, and therefore has a glyph)