sf::Font TwoForJuan;
for (int i = 0; i < rm.FontList.size(); i++)
{
if (rm.FontList[i].first == "TwoForJuan.ttf"){}
TwoForJuan.SetFont(rm.FontList[i].second);
}
I need to know how to set a text from a vector. The vector stored a pair of values. The first one is the file name (TwoForJuan.ttf in my case). The second stored the actual font.
It seems to me that there is no SetFont member in sf::Font. If anyone knows a way to perform this task help would be greatly appreciated.[/code]