Helper class to aid working with different unicode character sets.

See also:

Static variables

@:value([for (i in 32 ... 383) i])staticfinalread onlyBASE_GLYPHS:Array<Int> = [for (i in 32 ... 383) i]

Glyphs that are always loaded (Basic Latin, Latin-1 Supplement, Latin Extended-A).

@:value(["el" => [for (i in 0x0370 ... 0x03ff) i], "ru" => [for (i in 1024 ... 1119) i]])staticfinalread onlylocaleDefaultGlyphs:Map<String, Array<Int>> = ["el" => [for (i in 0x0370 ... 0x03ff) i], "ru" => [for (i in 1024 ... 1119) i]]

Glyph codepoints for additionally supported locales.

See also:

Static methods

staticinlinegetAdditionalLocales():Array<String>

Return an array with all ISO 639-1 locale codes from which glyphs are loaded in addition to FontUtil.BASE_GLYPHS.

staticinlineloadGlyphsFromCodepoints(codepoints:Array<Int>):Void

Additionally load glyphs from all unicode character codes given in codepoints.

staticloadGlyphsFromLocale(locale:String):Void

Additionally load glyphs from the given locale from FontUtil.localeDefaultGlyphs.

Parameters:

locale

The locale code according to ISO 639-1

staticinlineloadGlyphsFromString(string:String):Void

Additionally load glyphs from all characters in the given string.

staticinlineloadGlyphsFromStringOptional(string:String):Void

staticremoveDuplicatesFromSortedIArray(array:Array<Int>):Array<Int>

Return a new array where duplicate entries from an already sorted integer array are removed.

staticinlineunloadGlyphsFromCodepoints(codepoints:Array<Int>):Void

Unload glyphs from all unicode character codes given in codepoints.

See also:

  • loadGlyphsFromCodepoints

staticinlineunloadGlyphsFromLocale(locale:String):Void

Unload glyphs from the given locale from FontUtil.localeDefaultGlyphs. Glyphs that are loaded in another locale are not unloaded.

Parameters:

locale

The locale code according to ISO 639-1

See also:

  • loadGlyphsFromLocale

staticinlineunloadGlyphsFromString(string:String):Void

Unload glyphs from all characters in the given string.

See also:

  • loadGlyphsFromString