From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- layout/reftests/text-svgglyphs/resources/README | 61 +++++ .../resources/bug1320197-testFont2.ttf | Bin 0 -> 1972 bytes .../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-bitmap.ttf | Bin 0 -> 2064 bytes .../text-svgglyphs/resources/svg-bitmap.ttx | 253 +++++++++++++++++++++ .../text-svgglyphs/resources/svg-glyph-extents.otf | Bin 0 -> 183892 bytes .../reftests/text-svgglyphs/resources/svg-gz.ttf | Bin 0 -> 113804 bytes layout/reftests/text-svgglyphs/resources/svg.woff | Bin 0 -> 70060 bytes 17 files changed, 571 insertions(+) create mode 100644 layout/reftests/text-svgglyphs/resources/README create mode 100644 layout/reftests/text-svgglyphs/resources/bug1320197-testFont2.ttf 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-bitmap.ttf create mode 100644 layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx create mode 100644 layout/reftests/text-svgglyphs/resources/svg-glyph-extents.otf create mode 100644 layout/reftests/text-svgglyphs/resources/svg-gz.ttf 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 0000000000..852e5e4206 --- /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/bug1320197-testFont2.ttf b/layout/reftests/text-svgglyphs/resources/bug1320197-testFont2.ttf new file mode 100644 index 0000000000..8ef2e89edf Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/bug1320197-testFont2.ttf differ 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 0000000000..51c32135c0 --- /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 0000000000..4740b4ff3b --- /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 0000000000..cf738d0cc1 --- /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 0000000000..7fc479e22b --- /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 0000000000..44afb2f600 --- /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 0000000000..7f5a95ac09 --- /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 0000000000..ff3d9ffb76 --- /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 0000000000..ad53341871 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 0000000000..1ad1631812 --- /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 0000000000..3c83e02a30 Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/rubbish.woff differ diff --git a/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttf b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttf new file mode 100644 index 0000000000..cb0e3bd95d Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttf differ diff --git a/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx new file mode 100644 index 0000000000..cd3e9f4c5c --- /dev/null +++ b/layout/reftests/text-svgglyphs/resources/svg-bitmap.ttx @@ -0,0 +1,253 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SVG-Bitmap + + + Regular + + + SVG-Bitmap-Regular:v1.0 + + + SVG-Bitmap Regular + + + Version 1.0 + + + SVG-Bitmap-Regular + + + + + + + + + + + + + + + + + + + <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="glyph4" viewBox="0 0 1000 1000"><image x="0" y="-750" width="1000" height="1000" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEBNbnUEAoFAIBAIBALBk2ABo8QBP1gd7ycAAAAASUVORK5CYII="/></svg> + + + <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="glyph5" viewBox="0 0 1000 1000"><image x="0" y="-750" width="1000" height="1000" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUENAAAIBKDT/p01hQ83KEDN5FQnAoFAIBAIBAKB4EewtloCPhS2RvMAAAAASUVORK5CYII="/></svg> + + + <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="glyph6" viewBox="0 0 1000 1000"><image x="0" y="-750" width="1000" height="1000" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAChJREFUSMftzUEBAAAEBLCjf2dK8NsKrJLJp84zgUAgEAgEAoFAcGUBocYBP+pqhN4AAAAASUVORK5CYII="/></svg> + + + + 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 0000000000..1083f397f6 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-gz.ttf b/layout/reftests/text-svgglyphs/resources/svg-gz.ttf new file mode 100644 index 0000000000..3a9660224a Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg-gz.ttf differ diff --git a/layout/reftests/text-svgglyphs/resources/svg.woff b/layout/reftests/text-svgglyphs/resources/svg.woff new file mode 100644 index 0000000000..6deee1460d Binary files /dev/null and b/layout/reftests/text-svgglyphs/resources/svg.woff differ -- cgit v1.2.3