fn snap_width(widths: &[ScaledWidth], width: i32) -> i32
Snap a scaled width to one of the standard widths.
See https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/aflatin.c#L2697