mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Allow creation of unboxed FontTables
This commit is contained in:
parent
0010b448b8
commit
7f6b1da85c
4 changed files with 7 additions and 7 deletions
|
@ -209,10 +209,10 @@ impl FontHandleMethods for FontHandle {
|
|||
metrics
|
||||
}
|
||||
|
||||
fn table_for_tag(&self, tag: FontTableTag) -> Option<Box<FontTable>> {
|
||||
fn table_for_tag(&self, tag: FontTableTag) -> Option<FontTable> {
|
||||
let result: Option<CFData> = self.ctfont.get_font_table(tag);
|
||||
result.and_then(|data| {
|
||||
Some(box FontTable::wrap(data))
|
||||
Some(FontTable::wrap(data))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue