From 9825adf695a472be5d3316354f707c7d9d2d2730 Mon Sep 17 00:00:00 2001 From: James A Keene Date: Tue, 6 Jun 2017 23:51:13 -0400 Subject: [PATCH] changes osx fallback symbol font style Previously, the fallback symbol font copied the style of the font from the config. However, the only available style for the fallback symbol font is Normal slant, Normal weight. --- font/src/darwin/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index 940a7239..a972301a 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -164,7 +164,8 @@ impl ::Rasterize for Rasterizer { // fallbacks somehow. { let symbols = { - let d = FontDesc::new("Apple Symbols".to_owned(), desc.style.clone()); + let fallback_style = Style::Description { slant:Slant::Normal, weight:Weight::Normal } ; + let d = FontDesc::new("Apple Symbols".to_owned(), fallback_style); self.get_font(&d, size)? }; font.fallbacks.push(symbols);