Bug 1359240 - Reftest for SVG-in-OT font using gzip-compressed SVG glyph documents. r=jrmuizel

Depends on D31107

Differential Revision: https://phabricator.services.mozilla.com/D31108

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jonathan Kew 2019-05-20 12:25:07 +00:00
parent e82acf4503
commit 0ac415c764
4 changed files with 27 additions and 0 deletions

View File

@ -21,3 +21,4 @@ pref(gfx.font_rendering.opentype_svg.enabled,true) fuzzy-if(skiaContent,0-15,
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-paint-server.svg svg-glyph-paint-server-ref.svg
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-transform.svg svg-glyph-transform-ref.svg
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-extents.html svg-glyph-extents-ref.html
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-compressed.html svg-glyph-compressed-ref.html

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>Test for compressed SVG glyphs</title>
<style>
@font-face {
font-family: test;
src: url(resources/svg.woff); /* uses uncompressed SVG documents */
}
html { width: 400px; height: 400px; background-color: white; }
body { margin: 0; }
div { font: 200px test; color: fuchsia; line-height: 1; stroke: none; }
</style>
<div>abcdefg</div>
<div>LMNOPQR</div>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<title>Test for compressed SVG glyphs</title>
<style>
@font-face {
font-family: test;
src: url(resources/svg-gz.ttf); /* copy of svg.woff using gzip-compressed SVG documents */
}
html { width: 400px; height: 400px; background-color: white; }
body { margin: 0; }
div { font: 200px test; color: fuchsia; line-height: 1; stroke: none; }
</style>
<div>abcdefg</div>
<div>LMNOPQR</div>