Skip to content

Commit

Permalink
Merge pull request #987 from googlefonts/fixup-a-fixup
Browse files Browse the repository at this point in the history
[normalizer] Fix an old TODO
  • Loading branch information
dfrg authored Oct 3, 2024
2 parents ac9b6f5 + 3d74574 commit 8644ab9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions otl-normalizer/src/variations.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use write_fonts::read::{
tables::{
layout::VariationIndex,
variations::{DeltaSetIndex, ItemVariationStore},
},
tables::{layout::VariationIndex, variations::ItemVariationStore},
types::F2Dot14,
ReadError,
};
Expand Down Expand Up @@ -53,11 +50,7 @@ impl<'a> DeltaComputer<'a> {
coord: i32,
idx: VariationIndex,
) -> Result<Vec<i32>, ReadError> {
// TODO: this deserves an Into?
let delta_ix = DeltaSetIndex {
outer: idx.delta_set_outer_index(),
inner: idx.delta_set_inner_index(),
};
let delta_ix = idx.into();
self.locations
.iter()
.map(|loc| self.ivs.compute_delta(delta_ix, loc).map(|d| d + coord))
Expand Down

0 comments on commit 8644ab9

Please sign in to comment.