1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The [BASE](https://learn.microsoft.com/en-us/typography/opentype/spec/base) table

use super::layout::Device;
use super::variations::ItemVariationStore;

include!("../../generated/generated_base.rs");

impl Base {
    fn compute_version(&self) -> MajorMinor {
        if self.item_var_store.is_some() {
            MajorMinor::VERSION_1_1
        } else {
            MajorMinor::VERSION_1_0
        }
    }
}