aboutsummaryrefslogtreecommitdiff
path: root/font/src/ft/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/ft/mod.rs')
-rw-r--r--font/src/ft/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs
index d6585265..b751cdcf 100644
--- a/font/src/ft/mod.rs
+++ b/font/src/ft/mod.rs
@@ -229,9 +229,7 @@ impl FreeTypeRasterizer {
let mut charset = fc::CharSet::new();
charset.add(glyph);
let mut pattern = fc::Pattern::new();
- unsafe {
- pattern.add_charset(&charset);
- }
+ pattern.add_charset(&charset);
let config = fc::Config::get_current();
match fc::font_match(config, &mut pattern) {