summaryrefslogtreecommitdiff
path: root/font/src/directwrite/mod.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-02-27 00:29:14 +0300
committerGitHub <noreply@github.com>2020-02-26 21:29:14 +0000
commit84f57ac8367e3e24e0347515e6681c0478fc3d29 (patch)
tree2e4f478e83d0d27bdd0231a994b36ae156e4057e /font/src/directwrite/mod.rs
parent14dc170caafc47a46d4c040a17829b52d431bbcd (diff)
downloadalacritty-84f57ac8367e3e24e0347515e6681c0478fc3d29.tar.gz
alacritty-84f57ac8367e3e24e0347515e6681c0478fc3d29.zip
Add FreeType face cache
Diffstat (limited to 'font/src/directwrite/mod.rs')
-rw-r--r--font/src/directwrite/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/directwrite/mod.rs b/font/src/directwrite/mod.rs
index f2e71ef6..5f3bdfc1 100644
--- a/font/src/directwrite/mod.rs
+++ b/font/src/directwrite/mod.rs
@@ -113,7 +113,7 @@ impl crate::Rasterize for DirectWriteRasterizer {
let face = font.create_font_face();
self.fonts.push(face);
- Ok(FontKey { token: (self.fonts.len() - 1) as u16 })
+ Ok(FontKey { token: (self.fonts.len() - 1) as u32 })
}
fn get_glyph(&mut self, glyph: GlyphKey) -> Result<RasterizedGlyph, Error> {