Sunday, 15 April 2012

c++ - SDL ttf with opengl, font size issues -



c++ - SDL ttf with opengl, font size issues -

i working sdl ttf rendering text opengl, it's fine, know, when open ttf sdl file specify on pixels, , can't alter font size. can alter font size need close , re-open font, , little slow, so, there way alter font size or that?

i need following: font size can resized , adjusted window screen (like opengl -1.0f - 1.0f range works similar percent), multiline rendering back upwards no background.

you set on surface , scale surface. deform text, might issue.

or have array of text sizes. load same font range of text sizes. scale image, utilize different fonts instead of changing size of 1 font.

c++ opengl sdl sdl-ttf

No comments:

Post a Comment