Skip to content

Commit

Permalink
[fontdrasil] Typed coordinate spaces
Browse files Browse the repository at this point in the history
This started out as just an experiment, but I ended up fleshing it out
to the point where it is mergeable, if we wish.

The basic motivation was seeing the duplication in methods defined on
the various `Coords`, and wanting to unify that.
  • Loading branch information
cmyr committed Dec 6, 2023
1 parent 8991d75 commit 241f7e9
Show file tree
Hide file tree
Showing 4 changed files with 284 additions and 234 deletions.
4 changes: 2 additions & 2 deletions fontbe/src/glyphs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use std::collections::{BTreeSet, HashMap, HashSet};

use fontdrasil::{
coords::{Location, NormalizedCoord, NormalizedLocation},
coords::NormalizedLocation,
orchestration::{Access, AccessBuilder, Work},
types::GlyphName,
};
Expand Down Expand Up @@ -247,7 +247,7 @@ fn compute_deltas(
glyph_name: &GlyphName,
var_model: &VariationModel,
should_iup: bool,
point_seqs: &HashMap<Location<NormalizedCoord>, Vec<Point>>,
point_seqs: &HashMap<NormalizedLocation, Vec<Point>>,
coords: &Vec<Point>,
contour_ends: &Vec<usize>,
) -> Result<Deltas, Error> {
Expand Down
Loading

0 comments on commit 241f7e9

Please sign in to comment.