Cluster class

Cluster class

Encapsulates code points and glyphs composing a grapheme.

Constructors

NameDescription
Cluster(codepoints, glyphs)Initializes new instance of this class.

Properties

NameDescription
codepointsGets codepoints of the cluster.
codepoints_lengthGets total number of codepoints in the Cluster.
glyphsGets glyphs of the cluster.

Methods

NameDescription
deep_clone()Returns a deep clone of this instance.
get_string(clusters)Creates string using codepoints from the specified clusters.
get_string()Creates string using codepoints from this cluster.
get_width(em, font_size)Returns width of the cluster.

See Also