mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -195,8 +195,8 @@ impl FontHandleMethods for FontHandle {
|
|||
self.font_data.clone()
|
||||
}
|
||||
|
||||
fn family_name(&self) -> String {
|
||||
self.ctfont.family_name()
|
||||
fn family_name(&self) -> Option<String> {
|
||||
Some(self.ctfont.family_name())
|
||||
}
|
||||
|
||||
fn face_name(&self) -> Option<String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue