![]() |
Text in Tilengine - Printable Version +- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum) +-- Forum: English forums (http://tilengine.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (http://tilengine.org/forum/forumdisplay.php?fid=7) +--- Thread: Text in Tilengine (/showthread.php?tid=111) |
Text in Tilengine - JaumeAlcazo - 06-08-2018 Which is the best library to render text in SDL/Tilengine? I would like to use "\n", ttf fonts, bitmap fonts, different colors, etc... RE: Text in Tilengine - JaumeAlcazo - 06-08-2018 I will try SDL ttf, looks good: https://www.libsdl.org/projects/docs/SDL_ttf/SDL_ttf.html RE: Text in Tilengine - megamarc - 06-09-2018 (06-08-2018, 05:48 PM)JaumeAlcazo Wrote: Which is the best library to render text in SDL/Tilengine?Tilengine doesn't have specific text support. Common practice in tiled systems is to have a fixed-width font encoded inside a tileset, with each glyph using the same number of tiles. Then rendering text is just matter of updating the layer tilemap with TLN_SetTilemapTile() The "RetroPang" pang clone developed by RetroManiac magazine used this technique to render text. You can find the sample video in youtube and links to the source code and PDF magazine here: https://youtu.be/3x-RmMktoO0 RE: Text in Tilengine - JaumeAlcazo - 06-09-2018 Thanks Marc. |