[Fontconfig-bugs] [Bug 82582] Warn if config is wrong

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 14 01:22:35 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=82582

Akira TAGOH <akira at tagoh.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |akira at tagoh.org

--- Comment #3 from Akira TAGOH <akira at tagoh.org> ---
(In reply to comment #0)
> I *think* the correct way to write it is:
> 
>  <match target="font"> 
>     <test name="family" compare="contains"> 
>       <or> 
>         <string>MYingHeiB5HK</string> 
>         <string>MYingHeiGB18030</string> 
>         <string>MSung GB18030</string> 
>         <string>MSung B5HK</string> 
>       </or> 
>     </test> 

That doesn't even work. the required value types to test depends on the value
of the "name". at the above example, string, and sometimes integer, boolean
etc. but <or> always returns a boolean. so that fails.
I think too it is the way to go sensuously though, then the kind of the boolean
operators may needs to be fixed to work as <test> similarly. the current
implementation for them is really useless.

> I hear in the past (with 2.7.x), this used to work:
> 
> <match target="font">
>    <test name="family" compare="contains">
>         <string>MYingHeiB5HK</string>
>         <string>MYingHeiGB18030</string>
>         <string>MSung GB18030</string>
>         <string>MSung B5HK</string>
>     </test>
>     <!-- Turn on light auto-hint -->
>     <!-- Turn off sub-pixel anti-aliasing -->
>     <edit name="hinting" mode="assign"><bool>true</bool></edit>
>     <edit name="autohint" mode="assign"><bool>true</bool></edit>
>     <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
>     <edit name="antialias" mode="assign"><bool>true</bool></edit>
>     <edit name="rgba" mode="assign"><const>none</const></edit>
>  </match>
> 
> but with 2.11.x started warning about multiple strings in <test>...

See Bug#33644.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20140814/d6ce1545/attachment.html>


More information about the Fontconfig-bugs mailing list