Skip to content

Commit

Permalink
Rename Feature -> Construct
Browse files Browse the repository at this point in the history
Reading through the OpenType spec today, and learning that feature is a term of art.
  • Loading branch information
rictic committed Mar 22, 2024
1 parent e634af9 commit d68387c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fontir/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ pub enum WorkError {
},
#[error("No source with layerName \"{0}\" exists")]
NoSourceForName(String),
#[error("Source file contained a feature we don't yet support: {0}")]
UnsupportedFeature(String),
#[error("Source file contained a construct we don't yet support: {0}")]
UnsupportedConstruct(String),
}

/// An async work error, hence one that must be Send
Expand Down
6 changes: 3 additions & 3 deletions fontra2fontir/src/toir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pub(crate) fn to_ir_static_metadata(
.axes
.iter()
.map(|a| match a {
crate::fontra::FontraAxis::Discrete(_) => Err(WorkError::UnsupportedFeature(format!(
"discrete axis {a:?}"
))),
crate::fontra::FontraAxis::Discrete(_) => Err(WorkError::UnsupportedConstruct(
format!("discrete axis {a:?}"),
)),
crate::fontra::FontraAxis::Continuous(a) => Ok(a),
})
.map(|a| {
Expand Down

0 comments on commit d68387c

Please sign in to comment.