diff --git a/write-fonts/src/tables/layout.rs b/write-fonts/src/tables/layout.rs index 078c24537..0fe3294cf 100644 --- a/write-fonts/src/tables/layout.rs +++ b/write-fonts/src/tables/layout.rs @@ -644,6 +644,12 @@ fn encode_chunk(chunk: &[i8], mask: u8, bits: usize) -> u16 { out } +impl From for u32 { + fn from(value: VariationIndex) -> Self { + ((value.delta_set_outer_index as u32) << 16) | value.delta_set_inner_index as u32 + } +} + #[cfg(test)] mod tests { use super::*;