<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - font-variation-settings at or beyond axis extremes result in the axis reverting to default"
href="https://bugs.webkit.org/show_bug.cgi?id=163790#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - font-variation-settings at or beyond axis extremes result in the axis reverting to default"
href="https://bugs.webkit.org/show_bug.cgi?id=163790">bug 163790</a>
from <span class="vcard"><a class="email" href="mailto:lorp@lorp.org" title="Laurence Penney <lorp@lorp.org>"> <span class="fn">Laurence Penney</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=163790#c2">comment #2</a>)
<span class="quote">> I'm not sure if values exactly equalling the maximum/minimum are expected to
> work on any other piece of software</span >
I tried values for Skia that are definitely within the min and max:
<?php
$d = 6;
$font['wght']['min'] = (31457.0+$d)/65536.0;
$font['wght']['max'] = (209715.0-$d)/65536.0;
$font['wdth']['min'] = (40631.0+$d)/65536.0;
$font['wdth']['max'] = (85196.0-$d)/65536.0;
echo "<div style=\"font-variation-settings: 'wght' {$font['wght']['min']}, 'wdth' {$font['wdth']['min']};\">"; ?>Check the metrics</div>";
echo "<div style=\"font-variation-settings: 'wght' {$font['wght']['min']}, 'wdth' {$font['wdth']['max']};\">"; ?>Check the metrics</div>";
echo "<div style=\"font-variation-settings: 'wght' {$font['wght']['max']}, 'wdth' {$font['wdth']['min']};\">"; ?>Check the metrics</div>";
echo "<div style=\"font-variation-settings: 'wght' {$font['wght']['max']}, 'wdth' {$font['wdth']['max']};\">"; ?>Check the metrics</div>";
?>
These are designed to resolve to predictable Fixed (16.16) values that are definitely >min and <max.
However $d must be 6 before correct width behaviour happens, and $d must be 7 before correct weight behaviour happens.
So, to retitle the bug, "font-variation-settings just within, at, or beyond an axis's extremes result in that axis reverting to default".</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>