Thanks, I already solved it. The problem was that I created tgui::Gui before sf::Renderwindow.
But I still have a question, how can I load fonts and Themes from streams instead of a file?
But I still have a question, how can I load fonts and Themes from streams instead of a file?