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.
IndexSuggestions & BugsSoftware Bugs › createFont example bug
Page Index Toggle Pages: 1
createFont example bug (Read 1249 times)
createFont example bug
May 5th, 2005, 3:58am
 
// This report is an executable .pde file.
//
// Processing 1.0-0087 Beta Bug Report: createFont
// Operating System: Windows 2000 Professional
// Hardware: Sony VAIO PCG-GRX500K Laptop 1.6 GHz Pentium 4 with 255 Mb 52% utilized
// Created: May 4, 2005
//
// Author:      L. Van Warren
// Web:         http://www.wdv.com
// Email:       van at wdv dot com
//
// Adapted from http://processing.org/reference/createFont_.html

void setup()
{
 size(200, 200);
 background(153, 204, 153);
 println(PFont.list());

 PFont myFont;
 myFont = createFont("Verdana", 12);
 textFont(myFont);
 text("hello", 10, 10);
}

// This example produced the error output:
// java.lang.NullPointerException

// java.lang.NullPointerException
//
//       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Re: createFont example bug
Reply #1 - May 5th, 2005, 3:58pm
 
k thanks.. will look into it.
Re: createFont example bug
Reply #2 - May 6th, 2005, 1:51am
 
found and fixed for 88.
Page Index Toggle Pages: 1