Re: Changing behavior of evaluating multiple values in FcFontList()

Behdad Esfahbod <[email protected]> Sat, 22 Jun 2019 12:03:07 -0700
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <CAF63+7VukX0Q=NPFm+qPfy-MBiNt3yzqNsfGunXrjrr8RtH2tw@mail.gmail.com>
--===============1605272729==
Content-Type: multipart/alternative; boundary="00000000000078d8e4058bee3bed"

--00000000000078d8e4058bee3bed
Content-Type: text/plain; charset="UTF-8"

I think OR behavior is more useful indeed. Makes me slightly uncomfortable
to change though...

On Fri, Jun 21, 2019, 1:19 AM Akira TAGOH <[email protected]> wrote:

> Hi,
>
> FcFontList() (as konwn as API which fc-list uses) evalues and returns
> a result only when all of conditions are matched. for example, doing
> :foo=a,b would means 'the value of 'foo' matches 'a' AND 'b' so far.
> but one may expects to see OR instead of AND in most cases.
>
> Does anyone have any situations where you want to keep AND?
> Otherwise I'll change this.
>
> --
> Akira TAGOH
> _______________________________________________
> Fontconfig mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/fontconfig

--00000000000078d8e4058bee3bed
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">I think OR behavior is more useful indeed. Makes me sligh=
tly uncomfortable to change though...=C2=A0</div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jun 21, 2019, 1:19 AM Ak=
ira TAGOH &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wr=
ote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
FcFontList() (as konwn as API which fc-list uses) evalues and returns<br>
a result only when all of conditions are matched. for example, doing<br>
:foo=3Da,b would means &#39;the value of &#39;foo&#39; matches &#39;a&#39; =
AND &#39;b&#39; so far.<br>
but one may expects to see OR instead of AND in most cases.<br>
<br>
Does anyone have any situations where you want to keep AND?<br>
Otherwise I&#39;ll change this.<br>
<br>
-- <br>
Akira TAGOH<br>
_______________________________________________<br>
Fontconfig mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank" rel=
=3D"noreferrer">[email protected]</a><br>
<a href=3D"https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel=
=3D"noreferrer noreferrer" target=3D"_blank">https://lists.freedesktop.org/=
mailman/listinfo/fontconfig</a></blockquote></div>

--00000000000078d8e4058bee3bed--

--===============1605272729==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KRm9udGNvbmZp
ZyBtYWlsaW5nIGxpc3QKRm9udGNvbmZpZ0BsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9s
aXN0cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9mb250Y29uZmln

--===============1605272729==--