(This is using SFML 2)
I've encountered a problem drawing SFML Text. In my application, I use views as a sort of coordinate system for my application. Thus, a typical view would be 10 x 10 or 20 x 20. All my normal drawing functions work fine, when drawing primitives and lines, etc., and the relevant code doesn't have to know about the coordinate system - it just draws things to scale assuming the view is measured in meters.
However, when I tried to draw text to the screen, I found that it appeared gigantic. When I reduced the font size drastically, it appeared extremely blurry and pixellated, as if it were trying to render to GIANT pixels that are 1x1 in my view. I used the following code, my current view at the time is sf::View(-10, 7.5, 20, -15) (a typical graphing coordinate system)
sf::Text t(s, sf::Font::GetDefaultFont(), 5);
t.SetColor(sf::Color(0, 0, 0));
t.SetPosition(-8, -4);
Is there a way to draw text with a standard font size, in a way that it won't be affected by the view? Ideally, my text would width/size-wise on any view? Is there a way I can accomplish this?
Thanks for any input!
(P.S., I'm using SFML 2.0, for reference)