skrifa/outline/autohint/
mod.rs

1//! Runtime autohinting support.
2
3mod hint;
4mod instance;
5mod metrics;
6mod outline;
7mod shape;
8mod style;
9mod topo;
10
11pub use instance::GlyphStyles;
12pub(crate) use instance::Instance;
13
14/// All constants are defined based on a UPEM of 2048.
15///
16/// See <https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/aflatin.h#L34>
17fn derived_constant(units_per_em: i32, value: i32) -> i32 {
18    value * units_per_em / 2048
19}