diff --git a/components/gfx/platform/freetype/font.rs b/components/gfx/platform/freetype/font.rs index 62982e92170..f6dcbfe27b9 100644 --- a/components/gfx/platform/freetype/font.rs +++ b/components/gfx/platform/freetype/font.rs @@ -49,9 +49,9 @@ impl FontTableMethods for FontTable { pub struct FontHandle { // The font binary. This must stay valid for the lifetime of the font, // if the font is created using FT_Memory_Face. - pub font_data: Arc, - pub face: FT_Face, - pub handle: FontContextHandle + font_data: Arc, + face: FT_Face, + handle: FontContextHandle, } impl Drop for FontHandle { diff --git a/components/gfx/platform/macos/font.rs b/components/gfx/platform/macos/font.rs index 7f642634495..d9b0d60e9d4 100644 --- a/components/gfx/platform/macos/font.rs +++ b/components/gfx/platform/macos/font.rs @@ -59,8 +59,8 @@ impl FontTableMethods for FontTable { #[derive(Debug)] pub struct FontHandle { - pub font_data: Arc, - pub ctfont: CTFont, + font_data: Arc, + ctfont: CTFont, } impl FontHandleMethods for FontHandle {