diff --git a/renderer/rsdl/source/hibis_rsdl.d b/renderer/rsdl/source/hibis_rsdl.d index 9c297e8..ae4748b 100644 --- a/renderer/rsdl/source/hibis_rsdl.d +++ b/renderer/rsdl/source/hibis_rsdl.d @@ -65,6 +65,7 @@ class RSDL : Renderer { SDL_DestroyWindow(window); SDL_Quit(); + unloadSDLTTF(); unloadSDL(); } diff --git a/renderer/rsdl/source/resources/font.d b/renderer/rsdl/source/resources/font.d index 2e14993..7039177 100644 --- a/renderer/rsdl/source/resources/font.d +++ b/renderer/rsdl/source/resources/font.d @@ -5,12 +5,13 @@ import hibis.resources.resource; import sdl_ttf; import std.string : toStringz; import std.stdio; +import std.format : format; class Font : Resource { this(string path, uint size) { const char* nPath = cast(const(char)*)toStringz(path); loadedFont = TTF_OpenFont(nPath, size); - writeln("Loaded font"); + writeln(format("Loaded font at '%s'", path)); } ~this() {