From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- layout/reftests/text-svgglyphs/resources/README | 61 +++++++++++++++++++ .../text-svgglyphs/resources/glyphs-base.svg | 13 ++++ .../text-svgglyphs/resources/glyphs-invalid.svg | 40 ++++++++++++ .../resources/glyphs-objectcolor.svg | 24 ++++++++ .../resources/glyphs-objectopacity.svg | 59 ++++++++++++++++++ .../resources/glyphs-objectstroke.svg | 25 ++++++++ .../resources/glyphs-paintservers.svg | 28 +++++++++ .../text-svgglyphs/resources/glyphs-transforms.svg | 67 +++++++++++++++++++++ .../reftests/text-svgglyphs/resources/nosvg.woff | Bin 0 -> 68044 bytes .../reftests/text-svgglyphs/resources/rubbish.txt | 1 + .../reftests/text-svgglyphs/resources/rubbish.woff | Bin 0 -> 68172 bytes .../text-svgglyphs/resources/svg-glyph-extents.otf | Bin 0 -> 183892 bytes layout/reftests/text-svgglyphs/resources/svg.woff | Bin 0 -> 70060 bytes 13 files changed, 318 insertions(+) create mode 100644 layout/reftests/text-svgglyphs/resources/README create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-base.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg create mode 100644 layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg create mode 100644 layout/reftests/text-svgglyphs/resources/nosvg.woff create mode 100644 layout/reftests/text-svgglyphs/resources/rubbish.txt create mode 100644 layout/reftests/text-svgglyphs/resources/rubbish.woff create mode 100644 layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf create mode 100644 layout/reftests/text-svgglyphs/resources/svg.woff (limited to 'layout/reftests/text-svgglyphs/resources') diff --git a/layout/reftests/text-svgglyphs/resources/README b/layout/reftests/text-svgglyphs/resources/README new file mode 100644 index 000000000..852e5e420 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/README @@ -0,0 +1,61 @@ +.woff files for SVG-in-OpenType testing +======================================= + +There are three .woff files in this directory: + * nosvg.woff + * svg.woff + * rubbish.woff + +nosvg.woff +---------- +This font is FiraSansOT-Regular, with its metrics hacked so that its ascent +is 1000 and descent is 0. Its unitsPerEm value is 1000. + +It contains no 'SVG ' table. + +svg.woff +-------- +This font is the same as nosvg.woff above, but with the glyphs-*.svg SVG +documents from this directory embedded in it using the tools described below. + +rubbish.woff +------------ +This font is the same as nosvg.woff above, but with the addition of an 'SVG ' +table with the contents of rubbish.txt. Its purpose is to test that SVG tables +without valid XML are ignored. + +Creating the Fonts +------------------ +The tools used here are insertsvg.py from [1] and sfnt2woff from [2]. + +svg.woff can be recreated with: + +woff2sfnt nosvg.woff > nosvg.ttf +insertsvg.py nosvg.ttf svg.ttf glyphs-*.svg +sfnt2woff svg.ttf + +[1] https://github.com/edf825/SVG-OpenType-Utils +[2] http://people.mozilla.com/~jkew/woff/ + + + +Additional test fonts: +====================== + +svg-glyph-extents.otf +--------------------- + +This is a copy of Fira Sans with a simple SVG table added using the tool from +https://github.com/rocallahan/svg-opentype-workshop. The SVG table defines four +glyphs, corresponding to 'A' through 'D': + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-base.svg b/layout/reftests/text-svgglyphs/resources/glyphs-base.svg new file mode 100644 index 000000000..51c32135c --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-base.svg @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg b/layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg new file mode 100644 index 000000000..4740b4ff3 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-invalid.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg b/layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg new file mode 100644 index 000000000..cf738d0cc --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-objectcolor.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg b/layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg new file mode 100644 index 000000000..7fc479e22 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-objectopacity.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg b/layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg new file mode 100644 index 000000000..44afb2f60 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-objectstroke.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg b/layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg new file mode 100644 index 000000000..7f5a95ac0 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-paintservers.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg b/layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg new file mode 100644 index 000000000..ff3d9ffb7 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/glyphs-transforms.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/layout/reftests/text-svgglyphs/resources/nosvg.woff b/layout/reftests/text-svgglyphs/resources/nosvg.woff new file mode 100644 index 000000000..ad5334187 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/nosvg.woff differ diff --git a/layout/reftests/text-svgglyphs/resources/rubbish.txt b/layout/reftests/text-svgglyphs/resources/rubbish.txt new file mode 100644 index 000000000..1ad163181 --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/rubbish.txt @@ -0,0 +1 @@ +This is the text contained in the rubbish.ttf 'SVG ' table. It is obviously not XML, and should thus be ignored. diff --git a/layout/reftests/text-svgglyphs/resources/rubbish.woff b/layout/reftests/text-svgglyphs/resources/rubbish.woff new file mode 100644 index 000000000..3c83e02a3 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/rubbish.woff differ diff --git a/layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf b/layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf new file mode 100644 index 000000000..1083f397f Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf differ diff --git a/layout/reftests/text-svgglyphs/resources/svg.woff b/layout/reftests/text-svgglyphs/resources/svg.woff new file mode 100644 index 000000000..6deee1460 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg.woff differ -- cgit v1.2.3