Skip to main content

ShapePlanCache

Type Alias ShapePlanCache 

Source
type ShapePlanCache = RwLock<HashMap<(Script, Option<Language>), Arc<ShapePlan>>>;
Expand description

Per-face cache of compiled rustybuzz shape plans, keyed by the (script, language) a buffer resolves to after segment-property guessing. Arc so the hit path can clone the handle out and shape with the lock released.

Aliased Typeยง

struct ShapePlanCache { /* private fields */ }