summaryrefslogtreecommitdiff
path: root/font/src/ft/mod.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-03-18 00:50:25 +0000
committerGitHub <noreply@github.com>2020-03-18 00:50:25 +0000
commit8ff7246c3190924943202d1f427606289a6fe295 (patch)
treefeff915135bec1c526da270c937a22d1adf10e3e /font/src/ft/mod.rs
parent4883c4139acae49b77ecf60aff24364924246db0 (diff)
downloadalacritty-d555cb5c28cca2229ca774c03542f4d125016735.tar.gz
alacritty-d555cb5c28cca2229ca774c03542f4d125016735.zip
Bump version to RC2v0.4.2-rc2
Diffstat (limited to 'font/src/ft/mod.rs')
-rw-r--r--font/src/ft/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs
index d2a99cae..d393b63f 100644
--- a/font/src/ft/mod.rs
+++ b/font/src/ft/mod.rs
@@ -215,7 +215,6 @@ impl FreeTypeRasterizer {
let mut pattern = Pattern::new();
pattern.add_family(&desc.name);
pattern.add_pixelsize(size);
- let hash = pattern.hash();
// Add style to a pattern
match desc.style {
@@ -230,6 +229,9 @@ impl FreeTypeRasterizer {
},
}
+ // Hash requested pattern
+ let hash = pattern.hash();
+
pattern.config_substitute(config, fc::MatchKind::Pattern);
pattern.default_substitute();