mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
commit
c2a7aa94d4
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ impl FontHandleMethods for FontHandle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub impl FontHandle {
|
pub impl<'self> FontHandle {
|
||||||
priv fn set_char_size(face: FT_Face, pt_size: float) -> Result<(), ()>{
|
priv fn set_char_size(face: FT_Face, pt_size: float) -> Result<(), ()>{
|
||||||
let char_width = float_to_fixed_ft(pt_size) as FT_F26Dot6;
|
let char_width = float_to_fixed_ft(pt_size) as FT_F26Dot6;
|
||||||
let char_height = float_to_fixed_ft(pt_size) as FT_F26Dot6;
|
let char_height = float_to_fixed_ft(pt_size) as FT_F26Dot6;
|
||||||
|
@ -271,7 +271,7 @@ pub impl FontHandle {
|
||||||
Ok(FontHandle { source: FontSourceFile(file), face: face })
|
Ok(FontHandle { source: FontSourceFile(file), face: face })
|
||||||
}
|
}
|
||||||
|
|
||||||
priv fn get_face_rec(&self) -> &'self FT_FaceRec {
|
priv fn get_face_rec(&'self self) -> &'self FT_FaceRec {
|
||||||
unsafe {
|
unsafe {
|
||||||
&(*self.face)
|
&(*self.face)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue