@@ -548,7 +548,7 @@ func (fm *FontMap) resolveAllForLang(candidates []int, lang LangID) []*font.Face
548548 return faces
549549}
550550
551- // returns nil if no candidates supports the string `s`
551+ // returns nil if no candidates support the string `s`
552552func (fm * FontMap ) resolveForString (candidates []int , s string ) * font.Face {
553553 var rs RuneSet
554554 for _ , r := range s {
@@ -572,7 +572,7 @@ func (fm *FontMap) resolveForString(candidates []int, s string) *font.Face {
572572 return nil
573573}
574574
575- // returns all faces where candidates supports the string `s`
575+ // returns all faces where candidates support the string `s`
576576func (fm * FontMap ) resolveAllForString (candidates []int , s string ) []* font.Face {
577577 var rs RuneSet
578578 for _ , r := range s {
@@ -724,7 +724,7 @@ func (fm *FontMap) ResolveAllFacesForLang(lang LangID) []*font.Face {
724724 return fm .resolveAllForLang (fm .candidates .combine (), lang )
725725}
726726
727- // ResolveFacesForString returns the first face supporting the given string
727+ // ResolveFaceForString returns the first face supporting the given string
728728// (for the actual query).
729729//
730730// The matching logic is similar to the one used by [ResolveFace].
@@ -774,7 +774,7 @@ func (fm *FontMap) ResolveFaceForString(s string) *font.Face {
774774 return fm .firstFace
775775}
776776
777- // ResolveAllFacesForLang returns all faces supporting the given string
777+ // ResolveAllFacesForString returns all faces supporting the given string
778778// (for the actual query).
779779func (fm * FontMap ) ResolveAllFacesForString (s string ) []* font.Face {
780780 // no-op if already built
0 commit comments