From e9b93985d57d68ff7a0d7c079b4fee6b04334f3b Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Thu, 1 Feb 2018 18:02:28 +0100 Subject: [PATCH] Fix missing whitespace between functions --- components/gfx/platform/freetype/font.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/gfx/platform/freetype/font.rs b/components/gfx/platform/freetype/font.rs index a7dd652b9f5..84c178bce46 100644 --- a/components/gfx/platform/freetype/font.rs +++ b/components/gfx/platform/freetype/font.rs @@ -113,14 +113,17 @@ impl FontHandleMethods for FontHandle { } } } + fn template(&self) -> Arc { 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 { 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