Hi, just wrote the similar process in scheme until FcConfigSubstitute() in fc-match. that may be easier/helpful to modify/update the pattern building according to the rules. just FYI https://gist.github.com/2986471 -- Akira TAGOH