mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix missing whitespace between functions
This commit is contained in:
parent
1662fd7357
commit
e9b93985d5
1 changed files with 6 additions and 0 deletions
|
@ -113,14 +113,17 @@ impl FontHandleMethods for FontHandle {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn template(&self) -> Arc<FontTemplateData> {
|
||||
self.font_data.clone()
|
||||
}
|
||||
|
||||
fn family_name(&self) -> String {
|
||||
unsafe {
|
||||
c_str_to_string((*self.face).family_name as *const c_char)
|
||||
}
|
||||
}
|
||||
|
||||
fn face_name(&self) -> Option<String> {
|
||||
unsafe {
|
||||
let name = FT_Get_Postscript_Name(self.face) as *const c_char;
|
||||
|
@ -132,9 +135,11 @@ impl FontHandleMethods for FontHandle {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn is_italic(&self) -> bool {
|
||||
unsafe { (*self.face).style_flags & FT_STYLE_FLAG_ITALIC as c_long != 0 }
|
||||
}
|
||||
|
||||
fn boldness(&self) -> FontWeight {
|
||||
let default_weight = FontWeight::normal();
|
||||
if unsafe { (*self.face).style_flags & FT_STYLE_FLAG_BOLD as c_long == 0 } {
|
||||
|
@ -158,6 +163,7 @@ impl FontHandleMethods for FontHandle {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn stretchiness(&self) -> FontStretch {
|
||||
// TODO(pcwalton): Implement this.
|
||||
FontStretch::Normal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue