Skip to content

Commit

Permalink
Update fontique/src/attributes.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McNab <[email protected]>
  • Loading branch information
waywardmonkeys and DJMcNab authored Dec 9, 2024
1 parent 3ee4327 commit b0e2617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fontique/src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ impl FontWeight {
if weight == *fc {
return Self::new(*ot as f32);
}
// Linear interpolation if not an exact match
if weight < *fc {
let weight = weight as f32;
let fc_a = MAP[i - 1].1 as f32;
Expand Down

0 comments on commit b0e2617

Please sign in to comment.