Expand description
Emoji presentation resolution for text layout, translated from Christian Hansen’s c-emoji.
Some Unicode characters and sequences can be displayed either as ordinary text glyphs or as emoji. This crate determines the preferred presentation of a grapheme cluster from its Unicode emoji properties, variation selectors, and sequence structure. The implementation recognizes the emoji sequences defined by Unicode Technical Standard #51.
WARNING: This crate is currently designed only for use within Parley; if you have a use case for it, please reach out. This crate exists entirely because the code it adapts doesn’t match Parley’s existing license, but is otherwise currently treated as an internal implementation detail of Parley.
In Parley, this impacts font selection for these clusters.
§Features
The following crate feature flags are available:
std(enabled by default): This is currently unused and is provided for forward compatibility.
Note that Parley Emoji currently requires that an allocator is available (i.e. it depends on alloc).
Currently, Parley Emoji does not actually allocate, but the dependency is kept so starting to allocate
in the future is not a breaking change.
Structs§
- EmojiDFA
- Recognizes Unicode emoji sequence.
Enums§
- Emoji
Presentation Style - Represents presentation style for displaying emojis.
- Emoji
Segmentation Category - Represents the category of an emoji segmentation.