Skip to content

Commit

Permalink
Alias to Normal and Italic works without capitalization (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocroh authored Feb 1, 2025
1 parent 0c1404f commit 6b3baa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sugarloaf/src/font/fonts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Default, Serialize, Deserialize, PartialEq, Clone)]
pub enum SugarloafFontStyle {
#[default]
#[serde(alias = "normal")]
Normal,
#[serde(alias = "italic")]
Italic,
}

Expand Down

0 comments on commit 6b3baa4

Please sign in to comment.