I wrote a patch to fix the contains comparison for string and langset vars.
Now I can write the match rule like:
<test name="family" compare="contains">
which will match all families like ZYSong and SongTi, etc.
And the contains comparison for langset is ok now, eg.:
<test name="lang" compare="contains">
which will match all fonts with zh-cn langset.
Created attachment 46 [details] [review]
The patch to fix contains comparison for string and langset.