mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
Make FontHandle fields private
This commit is contained in:
parent
7f6b1da85c
commit
1a61273e1e
2 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue