mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-06 03:05:01 +03:00
Use font style for fontconfig fallback
This commit is contained in:
1 parent
b48e2fc2d8
commit
6ad0be5fb3
1 file changed
+3
-1
+3
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user