write_fonts/tables/
base.rs

1//! The [BASE](https://learn.microsoft.com/en-us/typography/opentype/spec/base) table
2
3use super::layout::DeviceOrVariationIndex;
4use super::variations::ItemVariationStore;
5
6include!("../../generated/generated_base.rs");
7
8impl Base {
9    fn compute_version(&self) -> MajorMinor {
10        if self.item_var_store.is_some() {
11            MajorMinor::VERSION_1_1
12        } else {
13            MajorMinor::VERSION_1_0
14        }
15    }
16}