void (List<FontInfo> all, boolean filterNonLatin) { List<FontInfo> allFonts = new ArrayList<>(all.size()); List<FontInfo> monoFonts = new ArrayList<>(); for (FontInfo info : all) { if (!filterNonLatin || info.getFont().canDisplayUpTo(info.toString()) == -1) { allFonts.add(info); if (info.isMonospaced()) { monoFonts.add(info); } } } myAllFonts = allFonts; myMonoFonts = monoFonts; }