@Override
 public int getConsoleFontSize() {
   String font = getConsoleFontName();
   UISettings uiSettings = UISettings.getInstance();
   if ((uiSettings == null || !uiSettings.PRESENTATION_MODE)
       && myConsoleFontPreferences.hasSize(font)) {
     return myConsoleFontPreferences.getSize(font);
   }
   return getEditorFontSize();
 }
  private static void writeFontPreferences(
      @NotNull String key, @NotNull Element parent, @NotNull FontPreferences preferences) {
    for (String fontFamily : preferences.getRealFontFamilies()) {
      Element element = new Element(key);
      Element e = new Element(OPTION_ELEMENT);
      e.setAttribute(NAME_ATTR, EDITOR_FONT_NAME);
      e.setAttribute(VALUE_ELEMENT, fontFamily);
      element.addContent(e);

      e = new Element(OPTION_ELEMENT);
      e.setAttribute(NAME_ATTR, EDITOR_FONT_SIZE);
      e.setAttribute(VALUE_ELEMENT, String.valueOf(preferences.getSize(fontFamily)));
      element.addContent(e);

      parent.addContent(element);
    }
  }
 @Override
 public int getEditorFontSize() {
   return myFontPreferences.getSize(getEditorFontName());
 }