I'm working with a form and I want to use different fonts. This is my code:


Code:
private Font font1, font2;

font1 = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_BOLD, Font.SIZE_LARGE);
font2 = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);

try{
            
            append("Title"+'\n'+"something", Image.createImage ("/pic.PNG"));
            setFont(0, font1);

           }catch(IOException e){
            }
I want "Title" to be font1 and "something" to be font2. Can it be done?