Make FontHandle fields private

This commit is contained in:
Matt Brubeck 2016-05-18 12:00:39 -07:00
parent 7f6b1da85c
commit 1a61273e1e
2 changed files with 5 additions and 5 deletions

View file

@ -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<FontTemplateData>,
pub face: FT_Face,
pub handle: FontContextHandle
font_data: Arc<FontTemplateData>,
face: FT_Face,
handle: FontContextHandle,
}
impl Drop for FontHandle {

View file

@ -59,8 +59,8 @@ impl FontTableMethods for FontTable {
#[derive(Debug)]
pub struct FontHandle {
pub font_data: Arc<FontTemplateData>,
pub ctfont: CTFont,
font_data: Arc<FontTemplateData>,
ctfont: CTFont,
}
impl FontHandleMethods for FontHandle {