TextLanguages class abstract

The languages text shapes and falls back with, like HTML's lang: usually BCP 47 tags, but any string is kept as written.

They are interned into the native runtime's table, so a TextRun carries one as a small slot number.

Constructors

TextLanguages()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

followPlatformLocales() → void
Uses the platform's preferred locales as the system languages, now and whenever they change, until setSystemLanguages sets others. RiveNative.init starts this.
intern(String tag) → int
The slot for tag, kept exactly as written, added if new. 0 for an empty one, which shapes with the system languages.
setSystemLanguages(List<String> languages) → void
The host's preferred languages, most preferred first, like navigator.languages: what text without a language of its own shapes with, and what fallback requests list after a text's own language. Stops following the platform's (see followPlatformLocales).