diff --git a/src/lib.rs b/src/lib.rs index 2733549..61cfff5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -149,6 +149,10 @@ impl FontKit { } } } + + pub fn remove(&self, key: &FontKey) { + self.fonts.remove(key); + } } impl FontKit { @@ -232,10 +236,6 @@ impl FontKit { self.fonts.values().find(|font| font.key == *key) } - pub fn remove(&self, key: &FontKey) { - self.fonts.remove(key); - } - pub fn query(&self, key: &FontKey) -> Option + '_> { let mut filters = vec![ Filter::Family(&key.family),