Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse more config items #24

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading