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 79d898b commit a46ac39Copy full SHA for a46ac39
src/text/font.rs
@@ -36,8 +36,6 @@ pub struct FontMetrics {
36
bold: bool,
37
oblique: bool,
38
variable: bool,
39
- weight: u16,
40
- width: u16,
41
}
42
43
impl FontMetrics {
@@ -80,14 +78,6 @@ impl FontMetrics {
80
78
pub fn variable(&self) -> bool {
81
79
self.variable
82
83
-
84
- pub fn weight(&self) -> u16 {
85
- self.weight
86
- }
87
88
- pub fn width(&self) -> u16 {
89
- self.width
90
91
92
93
pub(crate) struct Font {
@@ -113,8 +103,6 @@ impl Font {
113
103
bold: ttf_font.is_bold(),
114
104
oblique: ttf_font.is_oblique(),
115
105
variable: ttf_font.is_variable(),
116
- weight: ttf_font.width().to_number(),
117
- width: ttf_font.weight().to_number(),
118
106
};
119
107
120
108
Ok(Self {
0 commit comments