mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Build fix for android font that was missed during rust upgrade.
This commit is contained in:
parent
980ff21f19
commit
5bcc35580e
1 changed files with 2 additions and 2 deletions
|
@ -174,9 +174,9 @@ impl FontHandleMethods for FontHandle {
|
||||||
fn glyph_h_kerning(&self, first_glyph: GlyphId, second_glyph: GlyphId)
|
fn glyph_h_kerning(&self, first_glyph: GlyphId, second_glyph: GlyphId)
|
||||||
-> FractionalPixel {
|
-> FractionalPixel {
|
||||||
assert!(self.face.is_not_null());
|
assert!(self.face.is_not_null());
|
||||||
let delta = struct_FT_Vector_ { x: 0, y: 0 };
|
let mut delta = struct_FT_Vector_ { x: 0, y: 0 };
|
||||||
unsafe {
|
unsafe {
|
||||||
FT_Get_Kerning(self.face, first_glyph, second_glyph, FT_KERNING_DEFAULT, &delta);
|
FT_Get_Kerning(self.face, first_glyph, second_glyph, FT_KERNING_DEFAULT, &mut delta);
|
||||||
}
|
}
|
||||||
fixed_to_float_ft(delta.x as i32)
|
fixed_to_float_ft(delta.x as i32)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue