1
Graphics / SF::Font - somehow a glyph getting corrupted.
« on: July 04, 2018, 03:13:27 am »
So first off the direct issue can be seen in the following image:
The issue is that the letter K is instead just jumbled. This happens rarely and maybe once every 20 game launches.
The game has a font manager singleton that holds an sf::Font currentFont and is loaded via loadFromFile from the options singleton that I have in the game. So reloading the font fixes this issue. Each state's SF::Text's loads the font once, on their construction.
So is it possible for like the glyph in memory to move and thus for this to happen because a glyph is pointed at garbage?
Thanks
The issue is that the letter K is instead just jumbled. This happens rarely and maybe once every 20 game launches.
The game has a font manager singleton that holds an sf::Font currentFont and is loaded via loadFromFile from the options singleton that I have in the game. So reloading the font fixes this issue. Each state's SF::Text's loads the font once, on their construction.
So is it possible for like the glyph in memory to move and thus for this to happen because a glyph is pointed at garbage?
Thanks