diff options
Diffstat (limited to 'glow')
-rw-r--r-- | glow/Cargo.toml | 1 | ||||
-rw-r--r-- | glow/src/text.rs | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/glow/Cargo.toml b/glow/Cargo.toml index e40b8ba8..f5934f8f 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -11,6 +11,7 @@ repository = "https://github.com/hecrj/iced" canvas = ["iced_graphics/canvas"] qr_code = ["iced_graphics/qr_code"] default_system_font = ["iced_graphics/font-source"] +glyph_draw_cache_multithread = [] # Not supported yet! image = [] svg = [] diff --git a/glow/src/text.rs b/glow/src/text.rs index 925c7287..7c9574a2 100644 --- a/glow/src/text.rs +++ b/glow/src/text.rs @@ -41,7 +41,9 @@ impl Pipeline { let draw_brush = glow_glyph::GlyphBrushBuilder::using_font(font.clone()) .initial_cache_size((2048, 2048)) - .draw_cache_multithread(false) // TODO: Expose as a configuration flag + .draw_cache_multithread(cfg!( + feature = "glyph_draw_cache_multithread" + )) .build(&gl); let measure_brush = |