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 2a1bb86 commit 3ee4327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fontique/src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ impl FontWeight {
///
/// [fonts.conf documentation]: https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
pub fn from_fontconfig(weight: i32) -> Self {
// A selection of OpenType weights (first) and their corresponding fontconfig value (second)
// Invariant: The fontconfig values are sorted
const MAP: &[(i32, i32)] = &[
(0, 0),
(100, 0),
Expand Down

0 comments on commit 3ee4327

Please sign in to comment.