I don't know which OS my program is going to be used with, so I can't know which the font folder is. What I've tried, since I'm working with wxWidgets, which has a way of obtaining the system default font, is this:
wfont = wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT);
defaultFont.loadFromMemory(&wfont,sizeof(wfont));
//later in code
sf::Text txt("",defaultFont);
//...
txt.setString("lorem ipsum");
//...
draw(txt);
But it doesn't display anything.
And then every self-respecting multi-OS text handling program can make use of all installed fonts in the system. Therefore, it looks, such thing should be trivial to implement. What is the SFML way of doing it?