diff options
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r-- | src/renderer/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 9ce690ca..9e6036d4 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -29,7 +29,7 @@ use gl; use index::{Line, Column, RangeInclusive}; use notify::{Watcher, watcher, RecursiveMode, DebouncedEvent}; -use config::{self, Config, Delta}; +use config::{self, Config, Font, Delta}; use term::{self, cell, RenderableCell}; use window::{Size, Pixels}; @@ -170,12 +170,11 @@ pub struct GlyphCache { impl GlyphCache { pub fn new<L>( mut rasterizer: Rasterizer, - config: &Config, + font: &Font, loader: &mut L ) -> Result<GlyphCache, font::Error> where L: LoadGlyph { - let font = config.font(); let size = font.size(); let glyph_offset = *font.glyph_offset(); |