Установка шрифта на компоненту.
form.setLayout(ee);
// ta=new TextArea();
ta=new TextArea(6,10); // 6 строк 10 столбцов
ta.setX(10);
ta.setY(40);
ta.setEditable(true);
form.addComponent(ta);
form.show();
ta.setText("12345");
fn=Font.createSystemFont(Font.FACE_PROPORTIONAL,Font.STYLE_ITALIC,Font.SIZE_LARGE);
ta.getStyle().setFont(fn);
Варианты шрифтов:
FACE_SYSTEM, FACE_PROPORTIONAL, FACE_MONOSPACE
STYLE_PLAIN, STYLE_ITALIC, STYLE_BALD
SIZE_SMALL, SIZE_MEDIUM, SIZE_LARGE
ta.setText("12345");
String s;
s=(String)ta.getText();
s=s+"\nqwerty";
ta.setText(s);
fn=Font.createSystemFont(Font.FACE_MONOSPACE,Font.STYLE_BOLD,Font.SIZE_SMALL);
ta.getStyle().setFont(fn);