program HowToDrawCustomText; uses SwinGame,sgTypes; procedure Main(); begin OpenGraphicsWindow('Draw Custom Text' ,800 ,600 ); ClearScreen(); DrawText('You Win!!!' ,ColorGreen ,300 ,200 ); DrawTextLines('OR DO YOU???' ,ColorRed ,ColorWhite ,'Arial' ,18 ,AlignCenter ,400 ,400 ,160 ,100 ); RefreshScreen(); Delay(5000 ); ReleaseAllResources(); end; begin Main(); end.
How To Draw Custom Text
This beginner level how to explains how to load a custom font and use it when you display text to the game window.
In SwinGame you can create the look and feel of your user interface. By loading custom fonts you can ensure the desired look of your text. SwinGame allows you to load in as many custom fonts as required and use them when necessary.
For more advanced text formatting properties, take a look through the Text API.
You will be able to build an advanced story based program with more interactive fonts and formatting.