config_subsitute(): fix typo by renaming to config_substitute()
This commit is contained in:
parent
7c4e84c695
commit
f646f6c9f8
|
@ -50,7 +50,7 @@ pub fn font_match(
|
||||||
config: &ConfigRef,
|
config: &ConfigRef,
|
||||||
pattern: &mut PatternRef,
|
pattern: &mut PatternRef,
|
||||||
) -> Option<Pattern> {
|
) -> Option<Pattern> {
|
||||||
pattern.config_subsitute(config, MatchKind::Pattern);
|
pattern.config_substitute(config, MatchKind::Pattern);
|
||||||
pattern.default_substitute();
|
pattern.default_substitute();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -77,7 +77,7 @@ pub fn font_sort(
|
||||||
config: &ConfigRef,
|
config: &ConfigRef,
|
||||||
pattern: &mut PatternRef,
|
pattern: &mut PatternRef,
|
||||||
) -> Option<FontSet> {
|
) -> Option<FontSet> {
|
||||||
pattern.config_subsitute(config, MatchKind::Pattern);
|
pattern.config_substitute(config, MatchKind::Pattern);
|
||||||
pattern.default_substitute();
|
pattern.default_substitute();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -110,7 +110,7 @@ pub fn font_list(
|
||||||
pattern: &mut PatternRef,
|
pattern: &mut PatternRef,
|
||||||
objects: &ObjectSetRef,
|
objects: &ObjectSetRef,
|
||||||
) -> Option<FontSet> {
|
) -> Option<FontSet> {
|
||||||
pattern.config_subsitute(config, MatchKind::Pattern);
|
pattern.config_substitute(config, MatchKind::Pattern);
|
||||||
pattern.default_substitute();
|
pattern.default_substitute();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
|
@ -604,7 +604,7 @@ impl PatternRef {
|
||||||
index() => b"index\0"
|
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 {
|
unsafe {
|
||||||
FcConfigSubstitute(config.as_ptr(), self.as_ptr(), kind as u32);
|
FcConfigSubstitute(config.as_ptr(), self.as_ptr(), kind as u32);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue