Friday, 28 October 2016

True Type Fonts usage

I had been particularly concerned about the number images that were coming onto the screen. The pink background was not vanishing and also caused me some library errors which made me lag behind in my game. After much prodding in lazyfoo tutorials I got to know the concept of True Type Fonts.

Some libraries offer the functionality of writing onto your game with their inbuilt functions. SDL is among them. By defining font and size of your writing specified in a .ttf file one can write onto their programs without blitting images onto screen and worrying about their classes, positioning etc.

No comments:

Post a Comment