Skip to content

Commit

Permalink
Add STAT table, fix name IDs (#22392)
Browse files Browse the repository at this point in the history
Concluding from the discussion in #22355 name ids should have values
greater than 255, and the font should have a STAT table. The name id
issue is something the Firefox prints out as an error on the command
line. Add a STAT table, add a named instance for the regular instance,
and move name ids in this change. Also add encoding headers in tests and
references, and suppress font-synthesis as this is needed to help the
test pass on Firefox.

Fixes #22355 for Firefox.
  • Loading branch information
drott authored Mar 24, 2020
1 parent 10adbd6 commit e343467
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<style>
@font-face {
font-family: variable_axes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<link rel="stylesheet" href="font-matching.css">
<!-- Tests CSS Fonts Level 4, section 5.2. font matching algorithm. Precedence
of properties (stretch over style, style over weight) and style over weight
Expand Down
1 change: 1 addition & 0 deletions css/css-fonts/matching/font-matching.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
body {
font-family: variable_axes, sans-serif;
font-size: 80px;
font-synthesis: none;
}

#stretch_style_weight_1 {
Expand Down
Binary file modified css/css-fonts/matching/resources/variabletest_matching.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<style>
@font-face {
font-family: variable_axes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<link rel="stylesheet" href="font-matching.css">
<!-- Tests CSS Fonts Level 4, section 5.2. font matching algorithm. Precedence
of properties (stretch over style, style over weight) and distance of stretch . -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<style>
@font-face {
font-family: variable_axes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<link rel="stylesheet" href="font-matching.css">
<!-- Tests CSS Fonts Level 4, section 5.2. font matching algorithm. Precedence
of properties (stretch over style, style over weight) and search
Expand Down

0 comments on commit e343467

Please sign in to comment.