staticboolean failed = false; static Font dialog = new Font(Font.DIALOG, Font.PLAIN, 12); static String windowsFontDir = "c:\\windows\\fonts";
publicstaticvoid main(String args[]) {
if (!System.getProperty("os.name").toLowerCase().contains("windows")) { return;
}
String sysRootDir = System.getenv("SYSTEMROOT");
System.out.println("SysRootDir=" + sysRootDir); if (sysRootDir != null) {
windowsFontDir = sysRootDir + "\\fonts";
}
test("\u0905", "Devanagari", "mangal.ttf"); // from Mangal font
test("\u0985", "Bengali", "vrinda.ttf"); // from Vrinda font
test("\u0a05", "Gurmukhi", "raavi.ttf"); // from Raavi font
test("\u0a85", "Gujurati", "shruti.ttf"); // from Shruti font
test("\u0b05", "Oriya", "kalinga.ttf"); // from Kalinga font
test("\u0b85", "Tamil", "latha.ttf"); // from Latha font
test("\u0c05", "Telugu", "gautami.ttf"); // from Gautami font
test("\u0c85", "Kannada", "tunga.ttf"); // from Tunga font
test("\u0d05", "Malayalam", "kartika.ttf"); // from Kartika font
test("\u0c05", "Sinhala", "iskpota.ttf"); // from Iskoola Pota font
test("\u0e05", "Thai", "dokchamp.ttf"); // from DokChampa font
test("\u0e87", "Lao", "dokchamp.ttf"); // from DokChampa font
test("\u0e05", "Khmer", "khmerui.ttf"); // from Khmer UI font
test("\u1820", "Mongolian", "monbaiti.ttf"); // from Mongolian Baiti font
if (failed) { thrownew RuntimeException("Missing support for a script");
}
}
staticvoid test(String text, String script, String filename) {
File f = new File(windowsFontDir, filename); if (!f.exists()) {
System.out.println("Can't find required font file: " + filename); return;
}
System.out.println("found:" + f + " for " + script); if (dialog.canDisplayUpTo(text) != -1) {
failed = true;
System.out.println("No codepoint for " + script);
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.