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 & HelpSyntax Questions › the constructor Rfont is undefined
Page Index Toggle Pages: 1
the constructor Rfont is undefined (Read 2087 times)
the constructor Rfont is undefined
Jan 22nd, 2009, 12:51am
 
Hi,

I don't understand why this line is wrong :

f = new RFont(this,"MAKISUPA.ttf",372,RFont.CENTER);

===> error : the constructor Rfont(string,string,int,int) is undefined

That a part of caligraft's librairies ( pyrographie )
http://www.caligraft.com/calligraphies/web-pyrographie/pyrographie.pde

Anyone know why I have this error please ?

nb : sorry for my poor english.....

Re: the constructor Rfont is undefined
Reply #1 - Jan 22nd, 2009, 12:57am
 
Do you import geomerative like in the shown sketch? I suppose the class is defined there.
Re: the constructor Rfont is undefined
Reply #2 - Jan 22nd, 2009, 1:06am
 
Hi PhiLho,

Yes I import geomerative library.
I don't understand... ;(

import geomerative.*;
import org.apache.batik.svggen.font.table.*;
import org.apache.batik.svggen.font.*;
Re: the constructor Rfont is undefined
Reply #3 - Jan 22nd, 2009, 3:36pm
 
Mmm, I see something strange in the error message: "error : the constructor Rfont(string,string,int,int) is undefined".
"this" should not be a "string"...
Re: the constructor Rfont is undefined
Reply #4 - Oct 21st, 2009, 9:15am
 
i am actually having the same problem. and cant see anything wrong with my code. i had it for a long time but forgot about it until now. does anybody know what this error is?
Re: the constructor Rfont is undefined
Reply #5 - Nov 30th, 2009, 12:58pm
 
Using a Windows TrueType font worked for me.
Page Index Toggle Pages: 1