mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
gfx: Make FontHandleMethods::family_name return an optional value.
This commit is contained in:
parent
2ceb8dcd22
commit
4f596edcbf
4 changed files with 14 additions and 8 deletions
|
@ -294,8 +294,8 @@ impl FontHandleMethods for FontHandle {
|
|||
self.font_data.clone()
|
||||
}
|
||||
|
||||
fn family_name(&self) -> String {
|
||||
self.info.family_name.clone()
|
||||
fn family_name(&self) -> Option<String> {
|
||||
Some(self.info.family_name.clone())
|
||||
}
|
||||
|
||||
fn face_name(&self) -> Option<String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue