Skip to content

Commit

Permalink
Parse more config items
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Oct 28, 2024
1 parent 5fb4b16 commit 53143c3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,36 @@ pub struct Config {
pub family_name: Option<String>,
#[serde(default = "true_")]
pub build_variable: bool,
#[serde(default = "true_")]
pub build_static: bool,
#[serde(default = "true_")]
pub build_ttf: bool,
#[serde(default)]
pub build_otf: bool,
#[serde(default)]
pub axis_order: Vec<Tag>,
pub recipe_provider: Option<String>,
#[serde(default)]
pub glyph_data: Vec<String>,

// build options
#[serde(default = "true_")]
pub flatten_components: bool,
#[serde(default = "true_")]
pub decompose_transformed_components: bool,
#[serde(default = "true_")]
pub reverse_outline_direction: bool,
#[serde(default = "true_")]
pub check_compatibility: bool,
#[serde(default = "true_")]
pub remove_outline_overlaps: bool,
#[serde(default)]
pub expand_features_to_instances: bool,

#[serde(default = "true_")]
pub build_small_cap: bool,
#[serde(default = "true_")]
pub split_italic: bool,
}

fn true_() -> bool {
Expand Down

0 comments on commit 53143c3

Please sign in to comment.