File tree 1 file changed +1
-22
lines changed
1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,6 @@ pub struct hb_font_t<'a> {
21
21
pub ( crate ) points_per_em : Option < f32 > ,
22
22
}
23
23
24
- impl < ' a > AsRef < ttf_parser:: Face < ' a > > for hb_font_t < ' a > {
25
- #[ inline]
26
- fn as_ref ( & self ) -> & ttf_parser:: Face < ' a > {
27
- & self . ttfp_face
28
- }
29
- }
30
-
31
- impl < ' a > AsMut < ttf_parser:: Face < ' a > > for hb_font_t < ' a > {
32
- #[ inline]
33
- fn as_mut ( & mut self ) -> & mut ttf_parser:: Face < ' a > {
34
- & mut self . ttfp_face
35
- }
36
- }
37
-
38
24
impl < ' a > core:: ops:: Deref for hb_font_t < ' a > {
39
25
type Target = ttf_parser:: Face < ' a > ;
40
26
@@ -44,13 +30,6 @@ impl<'a> core::ops::Deref for hb_font_t<'a> {
44
30
}
45
31
}
46
32
47
- impl < ' a > core:: ops:: DerefMut for hb_font_t < ' a > {
48
- #[ inline]
49
- fn deref_mut ( & mut self ) -> & mut Self :: Target {
50
- & mut self . ttfp_face
51
- }
52
- }
53
-
54
33
impl < ' a > hb_font_t < ' a > {
55
34
/// Creates a new `Face` from data.
56
35
///
@@ -102,7 +81,7 @@ impl<'a> hb_font_t<'a> {
102
81
/// Sets font variations.
103
82
pub fn set_variations ( & mut self , variations : & [ Variation ] ) {
104
83
for variation in variations {
105
- self . set_variation ( variation. tag , variation. value ) ;
84
+ self . ttfp_face . set_variation ( variation. tag , variation. value ) ;
106
85
}
107
86
self . font . set_coords ( self . ttfp_face . variation_coordinates ( ) ) ;
108
87
}
You can’t perform that action at this time.
0 commit comments