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 › easy resizing pfont, isn't it
Page Index Toggle Pages: 1
easy resizing pfont, isn't it ? (Read 554 times)
easy resizing pfont, isn't it ?
Jul 31st, 2009, 10:38am
 
Code:

PFont pfont;
void setup()
{
 size(500,500);
 pfont = createFont("Aerovias Brasil NF.ttf", 45); //25
 textFont(pfont,45);
}

void draw()
{
 textSize(45);
 text("test big",20,20);
 textSize(25);
 text("test small",100,100);
}


this test sample works very fine. Unfortunately it doesn't work fine on a similar version.  My other version prints out each letter compressed. So the size wasn't changed, instead of that it changed the space between each character.

My question is now, which function manipulates this textSize / font properties, or i have to consider sth. ?
My other version is about 5 tabs, so i cant get this pretty formatted here.

Thanks a lot.
Re: easy resizing pfont, isn't it ?
Reply #1 - Jul 31st, 2009, 10:42am
 
very interesting, i got it. It was a textMode(SCREEN) option.

Which option is the best to put text onto screen while updating each draw?
Page Index Toggle Pages: 1