gfx: Make FontHandleMethods::family_name return an optional value.

This commit is contained in:
Josh Matthews 2018-08-02 17:02:44 -04:00
parent 2ceb8dcd22
commit 4f596edcbf
4 changed files with 14 additions and 8 deletions

View file

@ -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> {