diff options
Diffstat (limited to 'font')
-rw-r--r-- | font/src/ft/fc/mod.rs | 6 | ||||
-rw-r--r-- | font/src/ft/fc/pattern.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/font/src/ft/fc/mod.rs b/font/src/ft/fc/mod.rs index f6d7d64a..ac0c9442 100644 --- a/font/src/ft/fc/mod.rs +++ b/font/src/ft/fc/mod.rs @@ -50,7 +50,7 @@ pub fn font_match( config: &ConfigRef, pattern: &mut PatternRef, ) -> Option<Pattern> { - pattern.config_subsitute(config, MatchKind::Pattern); + pattern.config_substitute(config, MatchKind::Pattern); pattern.default_substitute(); unsafe { @@ -77,7 +77,7 @@ pub fn font_sort( config: &ConfigRef, pattern: &mut PatternRef, ) -> Option<FontSet> { - pattern.config_subsitute(config, MatchKind::Pattern); + pattern.config_substitute(config, MatchKind::Pattern); pattern.default_substitute(); unsafe { @@ -110,7 +110,7 @@ pub fn font_list( pattern: &mut PatternRef, objects: &ObjectSetRef, ) -> Option<FontSet> { - pattern.config_subsitute(config, MatchKind::Pattern); + pattern.config_substitute(config, MatchKind::Pattern); pattern.default_substitute(); unsafe { diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs index e3c5261f..88cf37be 100644 --- a/font/src/ft/fc/pattern.rs +++ b/font/src/ft/fc/pattern.rs @@ -604,7 +604,7 @@ impl PatternRef { index() => b"index\0" } - pub fn config_subsitute(&mut self, config: &ConfigRef, kind: MatchKind) { + pub fn config_substitute(&mut self, config: &ConfigRef, kind: MatchKind) { unsafe { FcConfigSubstitute(config.as_ptr(), self.as_ptr(), kind as u32); } |