Created attachment 27862 [details]
FC 2.7 ignores lang test in ~/.fonts.conf and strongbinds first <edit> see attachment
How is the attachment supposed to show the bug!?
He sent me this note:
"If you setup the attachment as your ~/.fonts.conf you would see font from the first match tag being set as default sans-serif for every language, omiting lang test condition."
Unless you attach a much shorter conf file that I can verify, I assume there's a bug in your conf file.
Created attachment 28941 [details]
For starter, the match should target="pattern", not target="font".
Ok, I found the bug. Currently <alias> doesn't work inside tests. <alias> is a syntactic sugar though, if you use the full form, it works:
<edit name="family" mode="prepend"><string>MS Mincho</string></edit>
I'll fix the alias later. Thanks for your patience.
Would we have syntactic sugar by the next release?
I don't get to work on this until January. Needs a bit of restructuring of the internal code that I'm not really comfortable with right now.
I guess that may be much better if we use the reference counted objects for FcTest and FcExpr as well as FcSharedStr perhaps.
simplified patch and merged in ddefa502.