public String[] getAvailableStyle() {
        if (fontList != null) {
            String[] availableStyles = new String[fontList.size()];
            Iterator nameIterator = fontList.iterator();
            Object[] fontData;
            int decorations;
            String style = "";
            for (int i = 0; nameIterator.hasNext(); i++) {
                fontData = (Object[]) nameIterator.next();
                decorations = (Integer) fontData[2];
                if ((decorations & BOLD_ITALIC) == BOLD_ITALIC) {
                    style += " BoldItalic";
                } else if ((decorations & BOLD) == BOLD) {
                    style += " Bold";
                } else if ((decorations & ITALIC) == ITALIC) {
                    style += " Italic";
                } else if ((decorations & PLAIN) == PLAIN) {
                    style += " Plain";
                }
                availableStyles[i] = style;
                style = "";
            }
            return availableStyles;
        }
        return null;
    }