Skip to content

Commit

Permalink
fix cff hinting midpoint calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrg committed Jan 30, 2024
1 parent d0a7972 commit 275ce85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scale/cff2/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ impl HintMap {
if !first.is_locked() {
if let Some(initial) = initial {
if is_pair {
let mid = initial.apply(scale, half(second.coord + first.coord));
let mid = initial.apply(scale, first.coord + half(second.coord - first.coord));
let half = half(second.coord - first.coord) * scale;
first.ds_coord = mid - half;
second.ds_coord = mid + half;
Expand Down

0 comments on commit 275ce85

Please sign in to comment.