code: protected static String getBaseName(String name) {
          if (name.endsWith(",Bold"))
              return name.substring(0, name.length() - 5);
          else if (name.endsWith(",Italic"))
              return name.substring(0, name.length() - 7);
          else if (name.endsWith(",BoldItalic"))
              return name.substring(0, name.length() - 11);
          else
              return name;
      }
docs: Gets the name without the modifiers Bold, Italic or BoldItalic.
  @param name the full name of the font
  @return the name without the modifiers Bold, Italic or BoldItalic