[Fontconfig] FcConfigSubstituteWithPat enhancement?

Behdad Esfahbod behdad at behdad.org
Mon Jan 14 12:41:48 PST 2013


Ok, I've pushed this to master.

Akira, can you clean up the copy_lang now?

On 13-01-10 10:54 PM, Akira TAGOH wrote:
> Right. I've fixed partly this issue for namelang related stuff in 2.10.2. that
> would makes sense if user-defined values is copied from the pattern to the
> result. that said we may need to test it carefully if it has any side-effects
> in apps.
> 
> 
> On Fri, Jan 11, 2013 at 7:36 AM, Behdad Esfahbod <behdad at behdad.org
> <mailto:behdad at behdad.org>> wrote:
> 
>     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/
>     _______________________________________________
>     Fontconfig mailing list
>     Fontconfig at lists.freedesktop.org <mailto:Fontconfig at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/fontconfig
> 
> 
> 
> 
> -- 
> Akira TAGOH

-- 
behdad
http://behdad.org/


More information about the Fontconfig mailing list