We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f08b655 commit 99c18baCopy full SHA for 99c18ba
src/text/font.rs
@@ -113,8 +113,8 @@ impl Font {
113
bold: ttf_font.is_bold(),
114
oblique: ttf_font.is_oblique(),
115
variable: ttf_font.is_variable(),
116
- weight: ttf_font.width().to_number(),
117
- width: ttf_font.weight().to_number(),
+ width: ttf_font.width().to_number(),
+ weight: ttf_font.weight().to_number(),
118
};
119
120
Ok(Self {
0 commit comments