TextScriptDetector class

Detects the script type of text for proper baseline adjustment

Constructors

TextScriptDetector()

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

analyzeTextSegments(String text) List<TextScriptSegment>
Analyze text and return segments with their script types
containsCJK(String text) bool
getCJKRatio(String text) double
Get the dominant script type for a text span Returns the ratio of CJK characters in the text
isCJKCharacter(int codePoint) bool