Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - durito

Pages: [1]
1
Graphics / auto-scale/positioning of Text
« on: September 09, 2009, 11:13:24 am »
great, thanks!

2
Graphics / auto-scale/positioning of Text
« on: September 09, 2009, 10:27:04 am »
Hi all,

First of all, I'm new to SFML and so far very happy with it (I used SDL before).

I'm now using SFML for a project with OpenGL rendering and some text output (with sf::String).

Code: [Select]
sf::String Text("text", _font, 16);
Text.SetPosition(20.0, 20.0);


The "text" is then rendered as expected with the given position and size in a sf::RenderWindow. But as soon as the window is resized, the text changes its size and position and seems to be scaled. How can I avoid this text-autoscaling? I need this text on a given position on the screen and not jumping around as soon as the window is resized  :shock:

thanks,
Daniel

Pages: [1]
anything