<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Improve size unparse?"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80873#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Improve size unparse?"
href="https://bugs.freedesktop.org/show_bug.cgi?id=80873">bug 80873</a>
from <span class="vcard"><a class="email" href="mailto:freedesktop@behdad.org" title="Behdad Esfahbod <freedesktop@behdad.org>"> <span class="fn">Behdad Esfahbod</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=80873#c5">comment #5</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=80873#c3">comment #3</a>)
> > I don't like NOT showing something that is set. Why is it set anyway?
> >
> > Given that a missing SIZE will match with score 0,
>
> This isn't correct. the default score is 1e99 and mismatch is 0. so if the
> certain value to evaluate is missing, that score is always 1e99 but the
> score for a font which has a value will be 0 on mismatch.
> that is the reason why we have to have something for objects affecting
> scoring.</span >
Are you sure?! My understanding is that if either the pattern or font doesn't
an element, that counts as a perfect match, ie. score 0:
static FcBool
FcCompare (FcPattern *pat,
FcPattern *fnt,
double *value,
FcResult *result)
{
int i, i1, i2;
for (i = 0; i < PRI_END; i++)
value[i] = 0.0;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>