Skip to main content

extents_from_corners

Function extents_from_corners 

Source
fn extents_from_corners(
    x_min: F48Dot16,
    y_min: F48Dot16,
    x_max: F48Dot16,
    y_max: F48Dot16,
) -> GlyphExtents<F48Dot16>
Expand description

Turns the corners of a box into a bearing and a size.

The corners can be in either order. A reversed box still has a non-negative size.