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

Author Topic: Text problem, letters are superimposed  (Read 1393 times)

0 Members and 1 Guest are viewing this topic.

aferents

  • Newbie
  • *
  • Posts: 7
    • View Profile
Text problem, letters are superimposed
« on: September 24, 2014, 08:31:09 am »
Hello all, i created simple example for windows using Text and Font classes
 window = new RenderWindow(new VideoMode(800, 600), "TextTest", (int)SFML.NET.Window.Window.Style.Default, new ContextSettings());

            var font = new Font();
            font.LoadFromFile("Resources/sansation.ttf");

            var text = new Text("Exa", font, 30u, Color.Green);
            text.SetPosition(new Vector2f(30f, 50f));
            text.Color = Color.Green;

            while (window.Window.IsOpen())
            {
                window.Clear(Color.White);
                window.Draw(text);

                window.Window.Display();  
            }
you can see result on the screen
i set string "Exa" but get Eaa.

does somebody ideas what is problem?
« Last Edit: September 24, 2014, 08:39:24 am by aferents »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Text problem, letters are superimposed
« Reply #1 on: September 24, 2014, 03:01:07 pm »
Where did you get SFML.NET and CSFML from?
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor