Fix missing whitespace between functions

This commit is contained in:
Jon Leighton 2018-02-01 18:02:28 +01:00
parent 1662fd7357
commit e9b93985d5

View file

@ -113,14 +113,17 @@ impl FontHandleMethods for FontHandle {
} }
} }
} }
fn template(&self) -> Arc<FontTemplateData> { fn template(&self) -> Arc<FontTemplateData> {
self.font_data.clone() self.font_data.clone()
} }
fn family_name(&self) -> String { fn family_name(&self) -> String {
unsafe { unsafe {
c_str_to_string((*self.face).family_name as *const c_char) c_str_to_string((*self.face).family_name as *const c_char)
} }
} }
fn face_name(&self) -> Option<String> { fn face_name(&self) -> Option<String> {
unsafe { unsafe {
let name = FT_Get_Postscript_Name(self.face) as *const c_char; 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 { fn is_italic(&self) -> bool {
unsafe { (*self.face).style_flags & FT_STYLE_FLAG_ITALIC as c_long != 0 } unsafe { (*self.face).style_flags & FT_STYLE_FLAG_ITALIC as c_long != 0 }
} }
fn boldness(&self) -> FontWeight { fn boldness(&self) -> FontWeight {
let default_weight = FontWeight::normal(); let default_weight = FontWeight::normal();
if unsafe { (*self.face).style_flags & FT_STYLE_FLAG_BOLD as c_long == 0 } { 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 { fn stretchiness(&self) -> FontStretch {
// TODO(pcwalton): Implement this. // TODO(pcwalton): Implement this.
FontStretch::Normal FontStretch::Normal