aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/display.rs b/src/display.rs
index fc5a5d40..52207ac1 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -212,7 +212,11 @@ impl Display {
{
let font = config.font().clone().with_size_delta(font_size_delta as f32);
let dpr = window.hidpi_factor();
- let rasterizer = font::Rasterizer::new(dpr, config.use_thin_strokes())?;
+ let rasterizer = font::Rasterizer::new(
+ font.options.clone(),
+ dpr,
+ config.use_thin_strokes()
+ )?;
// Initialize glyph cache
let glyph_cache = {