README (1808B)
1 .woff files for SVG-in-OpenType testing 2 ======================================= 3 4 There are three .woff files in this directory: 5 * nosvg.woff 6 * svg.woff 7 * rubbish.woff 8 9 nosvg.woff 10 ---------- 11 This font is FiraSansOT-Regular, with its metrics hacked so that its ascent 12 is 1000 and descent is 0. Its unitsPerEm value is 1000. 13 14 It contains no 'SVG ' table. 15 16 svg.woff 17 -------- 18 This font is the same as nosvg.woff above, but with the glyphs-*.svg SVG 19 documents from this directory embedded in it using the tools described below. 20 21 rubbish.woff 22 ------------ 23 This font is the same as nosvg.woff above, but with the addition of an 'SVG ' 24 table with the contents of rubbish.txt. Its purpose is to test that SVG tables 25 without valid XML are ignored. 26 27 Creating the Fonts 28 ------------------ 29 The tools used here are insertsvg.py from [1] and sfnt2woff from [2]. 30 31 svg.woff can be recreated with: 32 33 woff2sfnt nosvg.woff > nosvg.ttf 34 insertsvg.py nosvg.ttf svg.ttf glyphs-*.svg 35 sfnt2woff svg.ttf 36 37 [1] https://github.com/edf825/SVG-OpenType-Utils 38 [2] http://people.mozilla.com/~jkew/woff/ 39 40 41 42 Additional test fonts: 43 ====================== 44 45 svg-glyph-extents.otf 46 --------------------- 47 48 This is a copy of Fira Sans with a simple SVG table added using the tool from 49 https://github.com/rocallahan/svg-opentype-workshop. The SVG table defines four 50 glyphs, corresponding to 'A' through 'D': 51 52 <svg xmlns='http://www.w3.org/2000/svg'> 53 <rect id='glyph36' x='0' y='-1000' width='1000' height='1500' fill='red'/> 54 <rect id='glyph37' x='0' y='-1000' width='1000' height='1500' fill='green' transform='scale(2)'/> 55 <g id='glyph38'> 56 <rect x='0' y='-1000' width='1000' height='1500' fill='red'/> 57 </g> 58 <g id='glyph39'> 59 <rect x='0' y='-1000' width='1000' height='1500' fill='green' transform='scale(2)'/> 60 </g> 61 </svg>