Complete rewrite of sf::Font to make it more flexible (no more fixed charset and size)
FS#125 - Fix tab character not working in sf::String git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1309 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
839c80556d
commit
3a34f81561
32 changed files with 1016 additions and 3016 deletions
|
@ -93,7 +93,7 @@ namespace sample_shader
|
|||
Sprite entity = new Sprite(new Image("datas/shader/sprite.png"));
|
||||
|
||||
// Load the text font
|
||||
Font font = new Font("datas/shader/arial.ttf", 20);
|
||||
Font font = new Font("datas/shader/arial.ttf");
|
||||
|
||||
// Load the image needed for the wave effect
|
||||
Image waveImage = new Image("datas/shader/wave.jpg");
|
||||
|
@ -135,7 +135,7 @@ namespace sample_shader
|
|||
Text infoText = new Text();
|
||||
infoText.Font = font;
|
||||
infoText.Size = 20;
|
||||
infoText.Position = new Vector2(5.0F, 510.0F);
|
||||
infoText.Position = new Vector2(5.0F, 500.0F);
|
||||
infoText.Color = new Color(250, 100, 30);
|
||||
infoText.DisplayedString = "Move your mouse to change the shaders' parameters\n" +
|
||||
"Press numpad 1 to change the background shader\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue