diff --git a/examples/ttf.cc b/examples/ttf.cc index 0471435..ca457f6 100644 --- a/examples/ttf.cc +++ b/examples/ttf.cc @@ -22,6 +22,8 @@ #include #include +#include + #include #include #include @@ -57,6 +59,15 @@ int main() try { font.RenderText_Blended("Hello, world! (blended + outline)", SDL_Color{255, 255, 255, 255}) ); + font.SetOutline(0); + + textures.emplace_back(render, + font.RenderUTF8_Blended(u8"Hello, world! «¼½¾» (UTF-8 support)", SDL_Color{255, 255, 255, 255}) + ); + textures.emplace_back(render, + font.RenderUNICODE_Blended(u"Hello, world! «¼½¾» (UTF-16 support)", SDL_Color{255, 255, 255, 255}) + ); + while (1) { // Process input SDL_Event event;