Font (int type) { if (type == Font.BOLD) { return myScheme.getFont(EditorFontType.BOLD); } else { if (type == Font.ITALIC) { return myScheme.getFont(EditorFontType.ITALIC); } else { if (type == Font.ITALIC + Font.BOLD) { return myScheme.getFont(EditorFontType.BOLD_ITALIC); } else { return myScheme.getFont(EditorFontType.PLAIN); } } } }