[Fontconfig] FcConfigSubstituteWithPat enhancement?

Behdad Esfahbod behdad at behdad.org
Thu Jan 10 14:36:02 PST 2013


The SubstituteWithPat function copies the "best match" element value from the
pattern to the font pattern for any element not in the font pattern.  However,
for custom elements that ends up just copying the first value.  Which
typically is NOT what you want.  Typically you want all values to be copied.
Right?

For example, if I do this:

<match target="pattern">
  <edit name="pangofontfeatures" mode="append">
    <string>smcp</string>
    <string>ss20</string>
  </edit>
</match>

only one of the strings makes it to the other side.

Thoughts?

-- 
behdad
http://behdad.org/


More information about the Fontconfig mailing list