mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
WR update: APIs update
This commit is contained in:
parent
ecc11826d2
commit
a20455fd6b
6 changed files with 43 additions and 20 deletions
|
@ -280,7 +280,8 @@ impl FontHandleMethods for FontHandle {
|
|||
|
||||
let face = font_file
|
||||
.unwrap()
|
||||
.create_face(0, dwrote::DWRITE_FONT_SIMULATIONS_NONE);
|
||||
.create_face(0, dwrote::DWRITE_FONT_SIMULATIONS_NONE)
|
||||
.map_err(|_| ())?;
|
||||
let info = FontInfo::new_from_face(&face)?;
|
||||
(info, face)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue