aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/tests/support
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2018-02-12 12:18:53 +0100
committerJon Leighton <j@jonathanleighton.com>2018-02-22 16:36:09 +0100
commite4acb3f77f12e0d42fb8084dafbf5de59f7a1c1b (patch)
tree32b59e3a88fffc1226f6eae8e879a09fc0cf2317 /components/gfx/tests/support
parentf22e5ef3bdef97daa7b38cf642f24766cab6c488 (diff)
downloadservo-e4acb3f77f12e0d42fb8084dafbf5de59f7a1c1b.tar.gz
servo-e4acb3f77f12e0d42fb8084dafbf5de59f7a1c1b.zip
Add test for FontContext/FontGroup functionality
Unfortunately, this required quite a bit of changes to the non-test code. That's because FontContext depends on a FontCacheThread, which in turn depends on a CoreResourceThread and therefore lots of other data structures. It seemed like it would be very difficult to instantiate a FontContext as it was, and even if we could it seems like overkill to have all these data structures present for a relatively focused test. Therefore, I created a FontSource trait which represents the interface which FontContext uses to talk to FontCacheThread. FontCacheThread then implements FontSource. Then, in the test, we can create a dummy implementation of FontSource rather than using FontCacheThread. This actually has the advantage that we can make our dummy implementation behave in certain specific way which are useful for testing, for example it can count the number of times find_font_template() is called, which helps us verify that caching/lazy-loading is working as intended.
Diffstat (limited to 'components/gfx/tests/support')
-rw-r--r--components/gfx/tests/support/CSSTest/LICENSE94
-rw-r--r--components/gfx/tests/support/CSSTest/README25
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-ascii.ttfbin0 -> 28208 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-basic-bold.ttfbin0 -> 232344 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-basic-bolditalic.ttfbin0 -> 221620 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-basic-italic.ttfbin0 -> 227600 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-basic-regular.ttfbin0 -> 229636 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-fallback.ttfbin0 -> 28424 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-familyname-bold.ttfbin0 -> 29424 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-familyname-funkyA.ttfbin0 -> 29452 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-familyname-funkyB.ttfbin0 -> 29372 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-familyname-funkyC.ttfbin0 -> 29336 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-familyname.ttfbin0 -> 29208 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-verify.ttfbin0 -> 28564 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-100.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-1479-w1.ttfbin0 -> 8628 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-1479-w4.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-1479-w7.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-1479-w9.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-15-w1.ttfbin0 -> 8592 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-15-w5.ttfbin0 -> 8496 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-200.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-24-w2.ttfbin0 -> 8496 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-24-w4.ttfbin0 -> 8496 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-2569-w2.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-2569-w5.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-2569-w6.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-2569-w9.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-258-w2.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-258-w5.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-258-w8.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-300.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-3589-w3.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-3589-w5.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-3589-w8.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-3589-w9.ttfbin0 -> 8524 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-400.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-47-w4.ttfbin0 -> 8496 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-47-w7.ttfbin0 -> 8496 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-500.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-600.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-700.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-800.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-900.ttfbin0 -> 8364 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w1.ttfbin0 -> 8608 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w2.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w3.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w4.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w5.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w6.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w7.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w8.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights-full-w9.ttfbin0 -> 8508 bytes
-rw-r--r--components/gfx/tests/support/CSSTest/csstest-weights.ttfbin0 -> 8320 bytes
54 files changed, 119 insertions, 0 deletions
diff --git a/components/gfx/tests/support/CSSTest/LICENSE b/components/gfx/tests/support/CSSTest/LICENSE
new file mode 100644
index 00000000000..9b3c1a6df54
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/LICENSE
@@ -0,0 +1,94 @@
+Copyright (c) 2003-2008 SIL International (http://www.sil.org/),
+with Reserved Font Names "Gentium" and "SIL".
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 1 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that the font
+names of derivative works are changed. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/components/gfx/tests/support/CSSTest/README b/components/gfx/tests/support/CSSTest/README
new file mode 100644
index 00000000000..d4fe8fb50ae
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/README
@@ -0,0 +1,25 @@
+These fonts are a copy of the CSSTest fonts in web-platform-tests, so that we
+can use them for unit-testing our font code. Here is the README from
+web-platform-tests:
+
+-----
+
+These fonts were created to support the testing of the font features
+in CSS, and are required to run some of the tests for those features.
+
+The fonts are modified versions of Gentium Basic, licensed by SIL under
+the Open Font License which allows modifications as long as the terms
+of the license are met.
+
+The original fonts were used to create the family 'CSSTest Basic'. This
+family has four faces and can be used for testing bold / italics.
+A subsetted version of this font with only glyphs for basic ASCII
+characters is 'CSSTest ASCII'. This was used to make the other
+variations. Most of the modications are to the name table and character
+maps, for the most part glyphs were not modified.
+
+The fonts are available for download both individually and as a
+ZIP package below.
+
+The files test.html and test.xhtml test that the fonts have been
+correctly installed.
diff --git a/components/gfx/tests/support/CSSTest/csstest-ascii.ttf b/components/gfx/tests/support/CSSTest/csstest-ascii.ttf
new file mode 100644
index 00000000000..076788e9ce3
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-ascii.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-basic-bold.ttf b/components/gfx/tests/support/CSSTest/csstest-basic-bold.ttf
new file mode 100644
index 00000000000..8c53e6fdd42
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-basic-bold.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-basic-bolditalic.ttf b/components/gfx/tests/support/CSSTest/csstest-basic-bolditalic.ttf
new file mode 100644
index 00000000000..5b58f1ffa24
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-basic-bolditalic.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-basic-italic.ttf b/components/gfx/tests/support/CSSTest/csstest-basic-italic.ttf
new file mode 100644
index 00000000000..10926ce4e11
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-basic-italic.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-basic-regular.ttf b/components/gfx/tests/support/CSSTest/csstest-basic-regular.ttf
new file mode 100644
index 00000000000..c98d6130b68
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-basic-regular.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-fallback.ttf b/components/gfx/tests/support/CSSTest/csstest-fallback.ttf
new file mode 100644
index 00000000000..4f20f261f4d
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-fallback.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-familyname-bold.ttf b/components/gfx/tests/support/CSSTest/csstest-familyname-bold.ttf
new file mode 100644
index 00000000000..4bddbc2d16f
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-familyname-bold.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-familyname-funkyA.ttf b/components/gfx/tests/support/CSSTest/csstest-familyname-funkyA.ttf
new file mode 100644
index 00000000000..9f605f9190f
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-familyname-funkyA.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-familyname-funkyB.ttf b/components/gfx/tests/support/CSSTest/csstest-familyname-funkyB.ttf
new file mode 100644
index 00000000000..0a3688c53ab
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-familyname-funkyB.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-familyname-funkyC.ttf b/components/gfx/tests/support/CSSTest/csstest-familyname-funkyC.ttf
new file mode 100644
index 00000000000..feb463b15d9
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-familyname-funkyC.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-familyname.ttf b/components/gfx/tests/support/CSSTest/csstest-familyname.ttf
new file mode 100644
index 00000000000..5131280c2fe
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-familyname.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-verify.ttf b/components/gfx/tests/support/CSSTest/csstest-verify.ttf
new file mode 100644
index 00000000000..1d0b62a200b
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-verify.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-100.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-100.ttf
new file mode 100644
index 00000000000..964558a9499
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-100.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-1479-w1.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w1.ttf
new file mode 100644
index 00000000000..181d1a70e1d
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w1.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-1479-w4.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w4.ttf
new file mode 100644
index 00000000000..1751716d7a3
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w4.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-1479-w7.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w7.ttf
new file mode 100644
index 00000000000..f38fca9ff20
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w7.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-1479-w9.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w9.ttf
new file mode 100644
index 00000000000..7f34bbff829
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-1479-w9.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-15-w1.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-15-w1.ttf
new file mode 100644
index 00000000000..851f29b9f0b
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-15-w1.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-15-w5.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-15-w5.ttf
new file mode 100644
index 00000000000..cb06f50f905
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-15-w5.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-200.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-200.ttf
new file mode 100644
index 00000000000..306d8954986
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-200.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-24-w2.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-24-w2.ttf
new file mode 100644
index 00000000000..4c8533e658d
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-24-w2.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-24-w4.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-24-w4.ttf
new file mode 100644
index 00000000000..63cecb9aa30
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-24-w4.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-2569-w2.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w2.ttf
new file mode 100644
index 00000000000..99e03e90e67
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w2.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-2569-w5.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w5.ttf
new file mode 100644
index 00000000000..9300aeef4c1
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w5.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-2569-w6.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w6.ttf
new file mode 100644
index 00000000000..546489031e2
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w6.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-2569-w9.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w9.ttf
new file mode 100644
index 00000000000..66a1a06015c
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-2569-w9.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-258-w2.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-258-w2.ttf
new file mode 100644
index 00000000000..95b048816cf
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-258-w2.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-258-w5.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-258-w5.ttf
new file mode 100644
index 00000000000..3de6631d0bc
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-258-w5.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-258-w8.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-258-w8.ttf
new file mode 100644
index 00000000000..25d64dfb8c1
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-258-w8.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-300.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-300.ttf
new file mode 100644
index 00000000000..87fcd310aee
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-300.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-3589-w3.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w3.ttf
new file mode 100644
index 00000000000..fb071c03dfe
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w3.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-3589-w5.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w5.ttf
new file mode 100644
index 00000000000..2b9e530a816
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w5.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-3589-w8.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w8.ttf
new file mode 100644
index 00000000000..745a60ae25f
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w8.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-3589-w9.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w9.ttf
new file mode 100644
index 00000000000..e805f01d8fd
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-3589-w9.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-400.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-400.ttf
new file mode 100644
index 00000000000..9938a378bd6
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-400.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-47-w4.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-47-w4.ttf
new file mode 100644
index 00000000000..f6108ab2100
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-47-w4.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-47-w7.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-47-w7.ttf
new file mode 100644
index 00000000000..9496c5fdf27
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-47-w7.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-500.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-500.ttf
new file mode 100644
index 00000000000..0c132d28cdb
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-500.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-600.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-600.ttf
new file mode 100644
index 00000000000..ce776c01a2d
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-600.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-700.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-700.ttf
new file mode 100644
index 00000000000..156b0287a98
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-700.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-800.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-800.ttf
new file mode 100644
index 00000000000..0f41c304677
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-800.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-900.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-900.ttf
new file mode 100644
index 00000000000..97c8735125b
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-900.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w1.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w1.ttf
new file mode 100644
index 00000000000..dd1f6a9101c
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w1.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w2.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w2.ttf
new file mode 100644
index 00000000000..c42a506e21a
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w2.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w3.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w3.ttf
new file mode 100644
index 00000000000..f16a77b6edd
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w3.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w4.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w4.ttf
new file mode 100644
index 00000000000..8b1abae2f3f
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w4.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w5.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w5.ttf
new file mode 100644
index 00000000000..94aa9996827
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w5.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w6.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w6.ttf
new file mode 100644
index 00000000000..9badb99f500
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w6.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w7.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w7.ttf
new file mode 100644
index 00000000000..049d93d7698
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w7.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w8.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w8.ttf
new file mode 100644
index 00000000000..80169bf0715
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w8.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights-full-w9.ttf b/components/gfx/tests/support/CSSTest/csstest-weights-full-w9.ttf
new file mode 100644
index 00000000000..542e4ab199e
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights-full-w9.ttf
Binary files differ
diff --git a/components/gfx/tests/support/CSSTest/csstest-weights.ttf b/components/gfx/tests/support/CSSTest/csstest-weights.ttf
new file mode 100644
index 00000000000..b9c5a507f23
--- /dev/null
+++ b/components/gfx/tests/support/CSSTest/csstest-weights.ttf
Binary files differ