Expand description
Intrinsic text dimension measurement, OpenType shaping, and line breaking facade.
Functions§
- font_
generation - Returns the current font configuration generation. Caches key on this value so registering new platform measurers invalidates every measurement.
- get_
family_ styled_ text_ measurer - Retrieves the active registered family-aware styled text measurer callback, if any.
- get_
family_ text_ measurer - Retrieves the active registered family-aware text measurer callback, if any.
- get_
font_ metrics - Retrieves the active registered font metrics callback, if any.
- get_
styled_ text_ measurer - Retrieves the active registered styled text measurer callback, if any.
- get_
text_ measurer - Retrieves the active registered text measurer callback, if any.
- is_
monospace_ family - layout_
inline_ text - Advanced text layout returning detailed line boxes, glyph runs, baselines, and geometry.
- measure_
text_ bounds - Measures intrinsic text bounds (width, height) using subpixel typography and line breaking.
- measure_
text_ bounds_ ext - Measures intrinsic text bounds with explicit monospace font flag.
- measure_
text_ bounds_ styled_ with_ family - Measures intrinsic text bounds with family, weight, and style information.
- measure_
text_ bounds_ with_ family - Measures intrinsic text bounds while requesting a specific font family.
- measure_
text_ bounds_ with_ white_ space - Measures intrinsic text bounds honoring the CSS
white-spacemode. - register_
family_ styled_ text_ measurer - Registers a global platform styled text measurement callback that is family aware.
- register_
family_ text_ measurer - Registers a global platform text measurement callback that is family aware.
- register_
font_ metrics - Registers a global platform font metrics callback (ascent, descent, line gap).
- register_
styled_ text_ measurer - Registers a global platform styled text measurement callback (e.g. PangoCairo).
- register_
text_ measurer - Registers a global platform text measurement callback (e.g. PangoCairo).
- text_
measure_ cache_ stats - Returns cumulative
(hits, misses)for thread-local text/glyph layout measurement caches.
Type Aliases§
- Family
Styled Text Measurement Callback - Global styled text measurer callback that also receives the requested font family atom.
- Family
Text Measurement Callback - Global text measurer callback that also receives the requested font family atom.
- Font
Metrics Callback - Global font metrics callback returning
(ascent_px, descent_px, line_gap_px). - Styled
Text Measurement Callback - Global styled text measurer callback for exact font metrics measurement with weight and style.
- Text
Measurement Callback - Global text measurer callback type for exact platform font metrics measurement.