[Webkit-unassigned] [Bug 163790] font-variation-settings at or beyond axis extremes result in the axis reverting to default

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 24 09:27:36 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=163790

--- Comment #4 from Laurence Penney <lorp at lorp.org> ---
(In reply to comment #2)
> I'm not sure if values exactly equalling the maximum/minimum are expected to
> work on any other piece of software

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".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161024/7feb2af8/attachment.html>


More information about the webkit-unassigned mailing list