aboutsummaryrefslogtreecommitdiff
path: root/font/src/darwin/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/darwin/mod.rs')
-rw-r--r--font/src/darwin/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs
index 3ced7524..d5c65b50 100644
--- a/font/src/darwin/mod.rs
+++ b/font/src/darwin/mod.rs
@@ -285,7 +285,7 @@ pub fn descriptors_for_family(family: &str) -> Vec<Descriptor> {
font_name: desc.font_name(),
style_name: desc.style_name(),
display_name: desc.display_name(),
- font_path: desc.font_path(),
+ font_path: desc.font_path().unwrap_or_else(||{"".to_owned()}),
ct_descriptor: desc,
});
}