<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:tc01@1000linesofcode.com" title="Tony <tc01@1000linesofcode.com>"> <span class="fn">Tony</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: (dx > 0 && dy >= 0 && x1 <= x && x <= x2), function lerp, file fcweight.c, line 48."
href="https://bugs.freedesktop.org/show_bug.cgi?id=96609">bug 96609</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: (dx > 0 && dy >= 0 && x1 <= x && x <= x2), function lerp, file fcweight.c, line 48."
href="https://bugs.freedesktop.org/show_bug.cgi?id=96609#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Assertion failed: (dx > 0 && dy >= 0 && x1 <= x && x <= x2), function lerp, file fcweight.c, line 48."
href="https://bugs.freedesktop.org/show_bug.cgi?id=96609">bug 96609</a>
from <span class="vcard"><a class="email" href="mailto:tc01@1000linesofcode.com" title="Tony <tc01@1000linesofcode.com>"> <span class="fn">Tony</span></a>
</span></b>
<pre>Thanks Akira for your help,
What you mentioned is correct, except it is values over 1000 instead of 999
that will trigger the assertion.
When I adjust the code and restored one line of code from a previous version it
fixes the issue. Patch below:
Revert a 2.12 change in fcweight.c that introduced the bug
--- src/fcweight.c.orig 2016-07-01 14:58:33.000000000 -0400
+++ src/fcweight.c 2016-07-01 14:58:56.000000000 -0400
@@ -56,7 +56,7 @@
/* Loosely based on WPF Font Selection Model's advice. */
- if (ot_weight < 0)
+ if (ot_weight < 0 || ot_weight >1000)
return -1;
else if (1 <= ot_weight && ot_weight <= 9)
{</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>