We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Maximun font size
Page Index Toggle Pages: 1
Maximun font size (Read 1033 times)
Maximun font size
Oct 7th, 2005, 12:45pm
 
To make a huge screenshot from an applet (where I use OPENGL as renderer) I found a clear size limit with fonts.

I tried to create a font bigger as I can:

Code:
fontSmooth=createFont("Courier 10 Pitch BT", 121, true);  



But when I try to make it bigger (122 for instance) I get memory problem. It could be normal if I wouldn't had tried with a PC with much more RAM (2gb) that gets the same limit.

Is there any structural limitation on handling the fonts, maybe in OPENGL?


Thanks, chr
Re: Maximun font size
Reply #1 - Oct 7th, 2005, 2:41pm
 
I'm assuming you've told processing about all that extra ram, otherwise it'll be defaulting to whatever it is (128, or 256 I believe)!
Re: Maximun font size
Reply #2 - Oct 7th, 2005, 3:03pm
 
Sorry Mark, yes we are running processing from the .bat file.

[code]start java -ms1024m -mx1024m processing.app.Base [code]

http://nuthinking.com/works/Immagine.gif

and in the task manager (pc) it seems that processing takes more ram (look in the bottom 1369832KB) but actually doesn't affect in anyway the stability of the sw Sad

any ideas?


cheers, chr

Re: Maximun font size
Reply #3 - Oct 7th, 2005, 3:45pm
 
I presume the problem could be for the same reason posted on "memory leak with OPENGL" Sad

Waiting forward to see all this very cool technologies properly implemented in p5 Smiley

Good work guys!
Re: Maximun font size
Reply #4 - Oct 7th, 2005, 3:51pm
 
nope, it's not the memory leak with opengl, although it will take far more ram using opengl. i'm not sure what the upper limit would be, but you're not setting the memory in the right place, so that might be the problem.

read the faq on increasing memory:
http://processing.org/faq/bugs.html#memory

from the first line:
...whenever you import a library, include a code folder, or use "Present" to view your sketch, it will be run as a separate Java program, which we sometimes call running "externally".

To increase the amount of memory available to those programs, open your preferences.txt file and edit the run.options line to include something like:
-Xms128m -Xmx1024m
Re: Maximun font size
Reply #5 - Oct 7th, 2005, 4:28pm
 
That's what I'm talking about! Smiley

Thanks ben for the patience! Wink


Cheers, chr
Page Index Toggle Pages: 1