CachingTextShapingDriver
A caching implementation of TextShapingDriver that wraps another driver to optimize text shaping performance.
CachingTextShapingDriver maintains an in-memory LRU cache to store the results of text shaping operations. This minimizes redundant computations by reusing previously shaped results for identical inputs, thereby improving efficiency in scenarios where the same text is shaped multiple times.
Types
Properties
The underlying TextShapingDriver used to perform text shaping operations when no cache hit occurs.
Functions
Queries the position features available in the specified font face for a given script.
Queries the substitution features available in the specified font face for a given script.
Queries the scripts supported by the specified font face.
Shapes the given text into a sequence of glyphs according to the specific font face and optional typographic attributes like writing direction and script.