Skip to main content

Module json

Module json 

Source
Expand description

Measurements as JSON, in the form the wasm binding and the Python package return.

Enums§

MeasureError
Why a generator could not be measured.
StringUnit
The unit a report counts a text’s positions in: each binding’s string unit.

Functions§

measure_layout_json
Measures each node of the layout generator generator_json on a width by height picture at picture time time (crate::measure_layout).
measure_text_json
Measures the text generator generator_json on a width by height canvas (crate::measure_text).
text_layout_json
Reports where each line, word and cluster of the text generator generator_json lies on a width by height canvas (crate::text_layout), ranges in unit.