SFML community forums

Bindings - other languages => DotNet => Topic started by: Gonzilla on May 10, 2012, 09:41:52 am

Title: Display errors with text/font
Post by: Gonzilla on May 10, 2012, 09:41:52 am
I found a bug with the Text/Font class.

Font size 100 [Working]
var work = new Text("a b c", Font.DefaultFont, 100);
 
(http://img135.imageshack.us/img135/4658/sfml2rcfontworking.png)

Font size 170 [Working but with a dot at character b]
var work = new Text("a b c", Font.DefaultFont, 170);
 
(http://img192.imageshack.us/img192/1348/sfml2rcfontworkingbutwi.png)

Font size 200 [Not working character b is missing]
var work = new Text("a b c", Font.DefaultFont, 200);
 
(http://img687.imageshack.us/img687/523/sfml2rcfontnotworking.png)
Title: Re: Display errors with text/font
Post by: Laurent on May 10, 2012, 09:44:49 am
Any message in the standard output (console)?
Title: Re: Display errors with text/font
Post by: Gonzilla on May 10, 2012, 09:52:43 am
Sorry, no message.
Title: Re: Display errors with text/font
Post by: eXpl0it3r on May 10, 2012, 10:47:36 am
What if you use another font than the default one?

Also I see sf::Font is kind of buggy, missing characters, displaying noise on the edges crashing SFML with default font...
Is there no way that would make this all go away?
Title: Re: Display errors with text/font
Post by: Gonzilla on May 10, 2012, 11:20:08 am
What if you use another font than the default one?

Also I see sf::Font is kind of buggy, missing characters, displaying noise on the edges crashing SFML with default font...
Is there no way that would make this all go away?

I have tested different kind of fonts (Arial, Comic Sans, Verdana, ...) and all have the problems. For simplicity I use the default font.
Title: Re: Display errors with text/font
Post by: Laurent on May 10, 2012, 06:05:52 pm
I fixed the bug, thanks for your feedback.