loadFont slows the program loading?
in
Programming Questions
•
1 year ago
Hello there!
I am new to processing and in programing as well so please excuse me if I do not use the right definitions.
What I am trying to do is to load some text in my program.
I create a PFont variable outside the setup() by using this command.
PFont font;
Inside setup() I write this code..
font=loadFont("FatboySlim-24.vlw");
textFont(font);
and in the draw()
text("Hello",60,60);
The problem is the program takes up to 15 seconds to load!
If I comment (from down to top) the lines related to text then when I reach the line "font=loadFont("FatboySlim-24.vlw");" and I comment it the program loads in 1 second!
Is there something I do wrong?
I hope you understand what I asked!
Thank you!
I am new to processing and in programing as well so please excuse me if I do not use the right definitions.
What I am trying to do is to load some text in my program.
I create a PFont variable outside the setup() by using this command.
PFont font;
Inside setup() I write this code..
font=loadFont("FatboySlim-24.vlw");
textFont(font);
and in the draw()
text("Hello",60,60);
The problem is the program takes up to 15 seconds to load!
If I comment (from down to top) the lines related to text then when I reach the line "font=loadFont("FatboySlim-24.vlw");" and I comment it the program loads in 1 second!
Is there something I do wrong?
I hope you understand what I asked!
Thank you!
1