On the order of test and edit elements in a match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently, for every match elements, all tests are evaluated, and if all
match, all edits are applied in order of appearance.

I like to change this such that all test and edits are applied in order of
appearance simultaneously.   These are the reasons:

1) It's more intuitive,

2) It allows more succinct config.  You can do:

  <match>
    <test1>
    <edit1>
    <test2>
    <edit2>
  </match>

instead of:

  <match>
    <test1>
    <edit1>
  </match>
  <match>
    <test1>
    <test2>
    <edit2>
  </match>

3) It allows editing the pattern and then testing based on new edited values.

In the bitmap-scaling config I had to work around both 2 and 3.

Thoughts?

-- 
behdad
http://behdad.org/
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux