diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs index d2a99ca..d393b63 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();