Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rsheeter committed Nov 11, 2022
1 parent 46bc868 commit 7cb22a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/designspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ pub struct Instances {
/// [instance]: https://fonttools.readthedocs.io/en/latest/designspaceLib/xml.html#instance-element
#[derive(Clone, Debug, Default, PartialEq, Deserialize)]
pub struct Instance {
pub familyname: String,
pub stylename: String,
// per @anthrotype, contrary to spec, familyname and stylename are optional
pub familyname: Option<String>,
pub stylename: Option<String>,
pub name: String,
pub filename: String,
pub postscriptfontname: Option<String>,
Expand Down

0 comments on commit 7cb22a9

Please sign in to comment.