I'm trying to draw different sizes font on a phone screen. this is what 
I've tried:

    com.codename1.ui.Font f = g.getFont().derive(20f, 
com.codename1.ui.Font.SIZE_LARGE); // is get a 
java.lang.NullPointerException on this line.
    g.setFont(f);
    g.setColor(0x00FF00);
    g.drawString("Joseph", 111, 111);

Any ideas... or could someone point me in the right direction.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5dc1ff13-1230-42cb-a899-57044c1017a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to