Function compute_widths

Source
pub(super) fn compute_widths(
    shaper: &Shaper<'_>,
    coords: &[F2Dot14],
    style: &StyleClass,
) -> [(WidthMetrics, SmallVec<i32, MAX_WIDTHS>); 2]
Expand description

Compute all stem widths and initialize standard width and height for the given script.

Returns width metrics and unscaled widths for each dimension.

See https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/aflatin.c#L54