*
*/
public class FontRenderTest extends TestCase {
public void testFontRender() {
Font font = new Font(Font.VERDANA, Font.BOLD | Font.UNDERLINE, new Extent(12, Extent.PT));
CssStyle cssStyle = new CssStyle();
FontRender.renderToStyle(cssStyle, font);
assertEquals("Verdana,Arial,Helvetica,Sans-Serif", cssStyle.getAttribute("font-family"));
assertEquals("bold", cssStyle.getAttribute("font-weight"));
assertEquals("underline", cssStyle.getAttribute("text-decoration"));