diff options
author | 2020-05-21 19:08:04 +0200 | |
---|---|---|
committer | 2020-05-21 19:09:16 +0200 | |
commit | 2798d4935e14a2453adc9e85c1037cac3b79a8c9 (patch) | |
tree | b5946a11808afbe4f1f498093530b2ac4d686687 /glow/src/text.rs | |
parent | 60dcfc354e844757d2291bf44cb21c624bc270c2 (diff) | |
download | iced-2798d4935e14a2453adc9e85c1037cac3b79a8c9.tar.gz iced-2798d4935e14a2453adc9e85c1037cac3b79a8c9.tar.bz2 iced-2798d4935e14a2453adc9e85c1037cac3b79a8c9.zip |
Remove unused `overlay_font` in `iced_glow`
Diffstat (limited to 'glow/src/text.rs')
-rw-r--r-- | glow/src/text.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/glow/src/text.rs b/glow/src/text.rs index 952fd2cd..0a11b64f 100644 --- a/glow/src/text.rs +++ b/glow/src/text.rs @@ -36,9 +36,13 @@ impl Pipeline { let (brush_builder, measure_brush) = load_glyph_brush(default_font) .unwrap_or_else(|_: glow_glyph::rusttype::Error| { - log::warn!("System font failed to load. Falling back to embedded font..."); + log::warn!( + "System font failed to load. \ + Falling back to embedded font..." + ); - load_glyph_brush(font::FALLBACK.to_vec()).expect("Load fallback font") + load_glyph_brush(font::FALLBACK.to_vec()) + .expect("Load fallback font") }); let draw_brush = @@ -52,10 +56,6 @@ impl Pipeline { } } - pub fn overlay_font(&self) -> glow_glyph::FontId { - glow_glyph::FontId(0) - } - pub fn queue(&mut self, section: glow_glyph::Section<'_>) { self.draw_brush.borrow_mut().queue(section); } |