From 1a61273e1e010032f03d732bfff5261d353dcbc6 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 18 May 2016 12:00:39 -0700 Subject: [PATCH] Make FontHandle fields private --- components/gfx/platform/freetype/font.rs | 6 +++--- components/gfx/platform/macos/font.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 {