ItsHertz / gwen-dotnet

Automatically exported from code.google.com/p/gwen-dotnet
0 stars 0 forks source link

Can't load fonts with SFML Renderer #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Develop GUI with SFML renderer.
2. Load a custom Font into the renderer.

What is the expected output? What do you see instead?
The font isn't load.

What version of the product are you using? On what operating system?
Gwen.net Revision 144 (the last) with SFML 2.0, .Net 4.5

Please provide any additional information below.
The problem is at the line 114 of the SFML renderer, RenderData are not set. We 
can see that in the catch block the operation is made correctly but not in the 
try one :)

Just add after the line 114 :
sfFont.GetTexture((uint)font.Size).Smooth = font.Smooth;
font.RendererData = sfFont;

It will works :)

Thanks for resolve this problem.

Original issue reported on code.google.com by pontorea...@gmail.com on 25 Aug 2013 at 3:24