public static Map<UnicodeScript, String> getDisplayableScriptExamples(Font f,
			int maxExampleLen) {
		Map<UnicodeScript, String> result = new HashMap<>();
		for (int i = 0; i < Character.MAX_CODE_POINT; i++) {
			if (!Character.isISOControl(i)) {
				UnicodeScript us = UnicodeScript.of(i);
				String s = result.getOrDefault(us, "");
				if (s.length() < maxExampleLen && f.canDisplay(i)) {
					// Note: waiting until after f.canDisplay ensures we don't add PREMADEs if not displayable
					String premade = PREMADE_EXAMPLES.get(us);
					s = premade == null ? s + Character.toString(i) : premade;
					result.put(us, s);
				}
			}
		}
		return result;
	}
Builds a map of example character sequences for every current UnicodeScript, where the
specified font can display the characters of that script.

@param f {@link Font}
@param maxExampleLen length of the character sequence to generate
@return map of unicodescript-to-string
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/CharacterScriptUtils.java