Re: [Vala] SDL TTF Bindings can't find font

2012-09-15 Thread David Gomes
Oh, I forgot, thank you tons, that was it! On 9/15/12, tarn...@tarnyko.net wrote: > > Hi David, > > Do you have the following line at the beginning of your method : > > SDLTTF.init (); > > > Regards, Tarnyko > > > > David Gomes writes: > >> Hello there, first of all here's the relevant part of my

Re: [Vala] SDL TTF Bindings can't find font

2012-09-15 Thread tarnyko
Hi David, Do you have the following line at the beginning of your method : SDLTTF.init (); Regards, Tarnyko David Gomes writes: Hello there, first of all here's the relevant part of my code: using SDLTTF; (...) public void draw_string (string text, int x, int y, Color color)

[Vala] SDL TTF Bindings can't find font

2012-09-15 Thread David Gomes
Hello there, first of all here's the relevant part of my code: using SDLTTF; (...) public void draw_string (string text, int x, int y, Color color) { Rect destination = {}; Font pixel_font = new Font ("font.ttf", 20); if (pixel_font == null) print ("Font not found\n"); (...) }