Expand description
Cache and utilities for doing width measurement.
Structs§
- Codepoint
Mono - A measure in which each codepoint has width of 1.
- Width
Batch Req - A batched request, so that a number of strings can be measured in a a single RPC.
- Width
Cache - Width
Req - A request for measuring the widths of strings all of the same style (a request from core to front-end).
Traits§
- Width
Measure - A trait for types that provide width measurement. In the general case this will be provided by the frontend, but alternative implementations might be provided for faster measurement of ‘fixed-width’ fonts, or for testing.
Type Aliases§
- Token
- A token which can be used to retrieve an actual width value when the batch request is submitted.
- Width
Response - The response for a batch of
WidthReq
s.