summaryrefslogtreecommitdiffstats
path: root/glow/src/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'glow/src/text.rs')
-rw-r--r--glow/src/text.rs12
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);
}