/** * Obtain the OpenType script tags associated with the given Unicode codepoint. * * The result may contain the special value {@code #INHERITED}, which indicates that the * codepoint's script can only be determined by its context. * * Unknown codepoints are mapped to {@code #TAG_DEFAULT}. * * @param codePoint * @return An array of four-char script tags */ public static String[] getScriptTags(int codePoint) { ensureValidCodePoint(codePoint); String unicode = getUnicodeScript(codePoint); return UNICODE_SCRIPT_TO_OPENTYPE_TAG_MAP.get(unicode); }
/** * Obtain the OpenType script tags associated with the given Unicode codepoint. * * The result may contain the special value {@code #INHERITED}, which indicates that the * codepoint's script can only be determined by its context. * * Unknown codepoints are mapped to {@code #TAG_DEFAULT}. * * @param codePoint * @return An array of four-char script tags */ public static String[] getScriptTags(int codePoint) { ensureValidCodePoint(codePoint); String unicode = getUnicodeScript(codePoint); return UNICODE_SCRIPT_TO_OPENTYPE_TAG_MAP.get(unicode); }