swash::text

Module cluster

source
Expand description

Script aware cluster segmentation.

This module provides support for breaking text into clusters that are appropriate for shaping with a given script. For most scripts, clusters are equivalent to Unicode grapheme clusters. More complex scripts, however, may produce shaping clusters that contain multiple graphemes.

Structs§

  • Character output from the cluster parser.
  • Character cluster; output from the parser and input to the shaper.
  • Information about a character including unicode properties and boundary analysis.
  • Information about a cluster including content properties and boundary analysis.
  • Parser that accepts a sequence of characters and outputs character clusters.
  • Source range of a cluster in code units.
  • Character input to the cluster parser.

Enums§

  • Boundary type of a character or cluster.
  • Presentation mode for an emoji cluster.
  • Shaping class of a character.
  • Iterative status of mapping a character cluster to nominal glyph identifiers.
  • Whitespace content of a cluster.

Constants§

Type Aliases§

  • Artibrary user data that can be associated with a character throughout the shaping pipeline.