Is there a serious reason for not copying the data into sf::Font, like every other resource type does?
Not that it's a major problem, but it feels inconsistent with the rest of the library. With Shader, Texture, SoundBuffer, Music I can just pass the buffer and delete it afterwards.
In the documentation it reads:
Warning: SFML cannot preload all the font data in this function, so the buffer pointed by data has to remain valid as long as the font is used.
Perhaps it could just make a dumb copy of the buffer and store it, so that we could delete the original?