public void testSetFont() throws Exception {
Font oldFont = jta.getFont();
FontMetrics fm = jta.getFontMetrics(oldFont);
assertEquals(fm.getHeight(), jta.getRowHeight());
assertEquals(fm.charWidth('m'), jta.getColumnWidth());
jta.wasCallRevalidate = false;
Font newFont = new java.awt.Font("SimSun", 0, 12);
jta.setFont(newFont);
assertTrue(jta.wasCallRevalidate);
assertEqualsPropertyChangeEvent("font", oldFont, newFont, listener.event);