finished functions for freetype text