This is a simple code to call fontconfig and do pattern match, like Firefox did.
In a normal fontconfig call, there should be two steps, pattern match and sort by score. But for test purpose and do simplify the code, we only do the pattern match without sort, also like what Firefox did.