Skip to content

Commit

Permalink
feat: change stretch from string to number in list_all_font api
Browse files Browse the repository at this point in the history
  • Loading branch information
zimond committed Aug 3, 2023
1 parent 53d2f9a commit 59841da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ pub unsafe extern "C" fn list_all_font(fontkit: *mut FontKit) -> *const u8 {
};
serde_json::json!({
"names": font.names,
"stretch": number_width_to_str(key.stretch as u16),
"stretch": key.stretch,
"italic": key.italic,
"weight": key.weight,
"family": key.family,
Expand Down

0 comments on commit 59841da

Please sign in to comment.