mirror of
https://github.com/servo/servo.git
synced 2025-07-21 14:23:41 +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 {
|
pub struct FontHandle {
|
||||||
// The font binary. This must stay valid for the lifetime of the font,
|
// The font binary. This must stay valid for the lifetime of the font,
|
||||||
// if the font is created using FT_Memory_Face.
|
// if the font is created using FT_Memory_Face.
|
||||||
pub font_data: Arc<FontTemplateData>,
|
font_data: Arc<FontTemplateData>,
|
||||||
pub face: FT_Face,
|
face: FT_Face,
|
||||||
pub handle: FontContextHandle
|
handle: FontContextHandle,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for FontHandle {
|
impl Drop for FontHandle {
|
||||||
|
|
|
@ -59,8 +59,8 @@ impl FontTableMethods for FontTable {
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct FontHandle {
|
pub struct FontHandle {
|
||||||
pub font_data: Arc<FontTemplateData>,
|
font_data: Arc<FontTemplateData>,
|
||||||
pub ctfont: CTFont,
|
ctfont: CTFont,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FontHandleMethods for FontHandle {
|
impl FontHandleMethods for FontHandle {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue