I mean I use a custom sf::Text based on a older version than 2.1, can you point me at the right direction to fix it in my code?
Well if you looked at the closed issues on github you would find
issue #414. And then if looked a little closer at that you would see the commit ID
99d4ec3 which is the fix. Then you can look at the actual commit to find the difference.