Skip to content

Commit 99c18ba

Browse files
committed
Fix FontMetrics::width() and weight()
Closes femtovg#196
1 parent f08b655 commit 99c18ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/text/font.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ impl Font {
113113
bold: ttf_font.is_bold(),
114114
oblique: ttf_font.is_oblique(),
115115
variable: ttf_font.is_variable(),
116-
weight: ttf_font.width().to_number(),
117-
width: ttf_font.weight().to_number(),
116+
width: ttf_font.width().to_number(),
117+
weight: ttf_font.weight().to_number(),
118118
};
119119

120120
Ok(Self {

0 commit comments

Comments
 (0)