mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update webrender to 790b76f1547453615262c3037e1fb04bda22fbc8.
This commit is contained in:
parent
535ea9674f
commit
1c5e4b3067
6 changed files with 82 additions and 78 deletions
|
@ -272,7 +272,7 @@ impl FontHandleMethods for FontHandle {
|
|||
pt_size: Option<Au>,
|
||||
) -> Result<Self, ()> {
|
||||
let (info, face) = if let Some(ref raw_font) = template.bytes {
|
||||
let font_file = FontFile::new_from_data(&raw_font);
|
||||
let font_file = FontFile::new_from_data(Arc::new(raw_font.clone()));
|
||||
if font_file.is_none() {
|
||||
// failed to load raw font
|
||||
return Err(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue