d.print(" style=\"");
StringBuffer styleString = new StringBuffer();
    public static void printCSSInlineStyleAttributes(Device d, SComponent component) throws IOException {        d.print(" style=\"");        java.awt.Color fgColor = component.getForeground();        java.awt.Color bgcolor = component.getBackground();        SFont font = component.getFont();        SDimension dim = component.getPreferredSize();        if (bgcolor != null)            d.print("background-color:#").print(toColorString(bgcolor)).print(";");        if (fgColor != null) {            // not necessary? d.print("font-color:#").print(toColorString(fgColor)).print(";");            d.print("color:#").print(toColorString(fgColor)).print(";");        }        if (font != null) {            int style = font.getStyle();            d.print("font-size:").print(font.getSize()).print("pt;");            d.print("font-style:").print((style & java.awt.Font.ITALIC) > 0 ? "italic;" : "normal;");            d.print("font-weight:").print((style & java.awt.Font.BOLD) > 0 ? "bold;" : "normal;");            d.print("font-family:").print(font.getFace()).print(";");        }        if (dim != null) {            if (dim.isWidthDefined()) d.print("width:").print(dim.getWidth()).print(";");            if (dim.isHeightDefined()) d.print("height:").print(dim.getHeight()).print(";");        }        d.print("\"");    }