I am finishing my TextArea widget and to make things easier for me to implement quickly I treat each word in my TextArea as a separate object. I know the space I should leave between the lines thanks to the sf::Font::getLineSpacing(characterSize) and I figured out I could get the space I should leave between the words just by getting the width of the "space" Glyph. But...
float space_size = 1.0f * font.getGlyph(0x20, characterSize, false).bounds.width;
float bold_space_size = 1.0f * font.getGlyph(0x20, characterSize, true).bounds.width;
std::cout << "spaces " << space_size << " " << bold_space_size <<std::endl;
...it turns out the space character (0x20) has width of a zero.
Is there a good way of getting the width of a space I should leave between two words? Apart from imperfect ideas such as "getting the width of an 'a' glyph" or "getting width of of two words separated with a space and subtracting the sum of the lengths of the individual words"?