FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   fonts not working
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: fonts not working  (Read 277 times)
katya

Email
fonts not working
« on: Mar 17th, 2004, 4:27pm »

Hi-
I am completely frustrated. I can't get ANY of my fonts to show up and I'm not sure why.
YES they are in the data folder of my sketch.
I even cut and paste the example from the reference and substituted Arial.
 
BFont arial;  
arial = loadFont("Arial.vlw");  
textFont(arial, 44);  
text("word", 15, 50);  
 
Every time I try to run it I get the following message:
at java.lang.Thread.run (Thread.java:491)
Ignoring improperly loaded font in textFont()
text(): first set a font before drawing text
 
I'm wondering if it has something to do with the extension?  My fonts don't have any extension (although I did duplicate one and put .vlw to see if it would help -no)
under 'kind of document' some of them say PostScript, and some Font Suitcase, or just Document. But none of them work. I'm probably missing something really basic but can't figure it out.
btw i'm on a mac OSX 10.2.8
 
thx-
katya
 
TomC

WWW
Re: fonts not working
« Reply #1 on: Mar 17th, 2004, 4:39pm »

In Windows XP, to get Arial accessible in Processing I choose Sketch... Create Font... click Arial... click OK.  Then your code works fine.
 
If converting fonts like this doesn't work in Mac OS X, have you tried with one of the ready-made fonts in the fonts folder?
 
katya

Email
Re: fonts not working
« Reply #2 on: Mar 17th, 2004, 5:02pm »

that worked! thanks!!!!
p.s. i somehow missed the step where you have to 'create font' and was simply cutting and pasting my fonts. doh!
 
Pages: 1 

« Previous topic | Next topic »