code: public static Font[] filterMonospaced(Font... fonts) {
          List<Font> result = new ArrayList<Font>(fonts.length);
          for(Font font: fonts) {
              if (isFontMonospaced(font)) {
                  result.add(font);
              }
          }
          return result.toArray(new Font[result.size()]);
      }
docs: Given an array of fonts, returns another array with only the ones that are monospaced. The fonts in the result
  will have the same order as in which they came in. A font is considered monospaced if the width of 'i' and 'W' is
  the same.
  @param fonts Fonts to filter monospaced fonts from
  @return Array with the fonts from the input parameter that were monospaced