diff --git a/src/designspace.rs b/src/designspace.rs index bf312103..eef673d8 100644 --- a/src/designspace.rs +++ b/src/designspace.rs @@ -26,6 +26,14 @@ pub struct DesignSpaceDocument { /// One or more rules. #[serde(default, skip_serializing_if = "Rules::is_empty")] pub rules: Rules, + /// Zero or more variable fonts. + #[serde( + rename = "variable-fonts", + with = "serde_impls::variable_fonts", + default, + skip_serializing_if = "Vec::is_empty" + )] + pub variable_fonts: Vec, /// One or more sources. #[serde(with = "serde_impls::sources", skip_serializing_if = "Vec::is_empty")] pub sources: Vec, @@ -67,6 +75,52 @@ pub struct Axis { /// Mapping between user space coordinates and design space coordinates. #[serde(skip_serializing_if = "Option::is_none")] pub map: Option>, + /// ... + #[serde(rename = "labelname", default, skip_serializing_if = "Vec::is_empty")] + pub label_names: Vec, + /// ... + #[serde(with = "serde_impls::labels", default, skip_serializing_if = "Vec::is_empty")] + pub labels: Vec