Skip to content

Commit a46ac39

Browse files
committed
Remove unused fields from FontMetrics
1 parent 79d898b commit a46ac39

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/text/font.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ pub struct FontMetrics {
3636
bold: bool,
3737
oblique: bool,
3838
variable: bool,
39-
weight: u16,
40-
width: u16,
4139
}
4240

4341
impl FontMetrics {
@@ -80,14 +78,6 @@ impl FontMetrics {
8078
pub fn variable(&self) -> bool {
8179
self.variable
8280
}
83-
84-
pub fn weight(&self) -> u16 {
85-
self.weight
86-
}
87-
88-
pub fn width(&self) -> u16 {
89-
self.width
90-
}
9181
}
9282

9383
pub(crate) struct Font {
@@ -113,8 +103,6 @@ impl Font {
113103
bold: ttf_font.is_bold(),
114104
oblique: ttf_font.is_oblique(),
115105
variable: ttf_font.is_variable(),
116-
weight: ttf_font.width().to_number(),
117-
width: ttf_font.weight().to_number(),
118106
};
119107

120108
Ok(Self {

0 commit comments

Comments
 (0)