mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +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> {
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue