mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix panic when font face name is not available
This commit is contained in:
parent
eb058e20a9
commit
ecab3cd796
4 changed files with 14 additions and 8 deletions
|
@ -299,8 +299,8 @@ impl FontHandleMethods for FontHandle {
|
|||
self.info.family_name.clone()
|
||||
}
|
||||
|
||||
fn face_name(&self) -> String {
|
||||
self.info.face_name.clone()
|
||||
fn face_name(&self) -> Option<String> {
|
||||
Some(self.info.face_name.clone())
|
||||
}
|
||||
|
||||
fn is_italic(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue