Skip to main content

Module text_cache

Module text_cache 

Source
Expand description

Bounded cache for shaped text results keyed by text and style.

Values are shared through Arc so cache hits stay cheap: the measurer keeps using the shaped text by reference while the cache holds another handle to the same allocation.

Structsยง

TextShapeCache