summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-05-06 09:15:50 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-05-06 12:53:54 -0700
commit1d949d72d4dcf3b569c85ebdbc7b252dcf8b9a2e (patch)
treef2e879dae30a6cc4d0d71d2a3b7b32555f4d649f /src
parent9316771f64842533181cfb04a27aa9ae809cc435 (diff)
Work around ICE
Diffstat (limited to 'src')
-rw-r--r--src/renderer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 016518e5..3c18d28a 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -228,7 +228,7 @@ impl GlyphCache {
// Need to load at least one glyph for the face before calling metrics.
// The glyph requested here ('m' at the time of writing) has no special
// meaning.
- rasterizer.get_glyph(&GlyphKey { font_key: regular, c: 'm' as char, size: font.size() })?;
+ rasterizer.get_glyph(&GlyphKey { font_key: regular, c: 'm', size: font.size() })?;
let metrics = rasterizer.metrics(regular)?;
let mut cache = GlyphCache {