C2d.Text_metrics
Text metrics.
The type for TextMetrics
objects.
val width : t -> float
val actual_bounding_box_left : t -> float
val actual_bounding_box_right : t -> float
val font_bounding_box_ascent : t -> float
val font_bounding_box_descent : t -> float
val actual_bounding_box_ascent : t -> float
val actual_bounding_box_descent : t -> float
val em_height_ascent : t -> float
val em_height_descent : t -> float
val hanging_baseline : t -> float
val alphabetic_baseline : t -> float
val ideographic_baseline : t -> float