Skip to content

Commit

Permalink
[tx tests] Add fonts with flex operator
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelsousa committed Aug 21, 2019
1 parent aa3725d commit 54e4c3c
Show file tree
Hide file tree
Showing 17 changed files with 500 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/tx_data/expected_output/flex.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## glyph[tag] {name,encoding,path}
glyph[0] {.notdef,-,
500 width
endchar}
glyph[1] {exclam,-,
450 width
0 55 hstem
305 356 hstem
180 270 vstem
100 0 move
139 3 178 5 225 5
272 5 311 3 350 0 50 flex
350 55 line
275 55 line
272 94 270 133 270 180 curve
270 227 272 266 275 305 curve
350 305 line
350 356 line
311 353 272 351 225 351
178 351 139 353 100 356 50 flex
100 305 line
175 305 line
178 266 180 227 180 180 curve
180 133 178 94 175 55 curve
100 55 line
endchar}
196 changes: 196 additions & 0 deletions tests/tx_data/input/flex.pfa

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
'.notdef': ['w500', ['autohint']],
'exclam': ['f64882722fcbd3a3cd1bd6b83061c23a218d3372729f68d04cb7b35036d31b6a6cdaeedeabd23dbb82897de3cddeb26c5aab71440239f4d82569ee4bf8afacd9', ['autohint']],
'hashMapVersion': (1, 0),
}
36 changes: 36 additions & 0 deletions tests/tx_data/input/flex.ufo/fontinfo.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ascender</key>
<integer>750</integer>
<key>capHeight</key>
<integer>750</integer>
<key>descender</key>
<integer>-250</integer>
<key>guidelines</key>
<array/>
<key>postscriptBlueValues</key>
<array/>
<key>postscriptFamilyBlues</key>
<array/>
<key>postscriptFamilyOtherBlues</key>
<array/>
<key>postscriptFontName</key>
<string>Flex</string>
<key>postscriptOtherBlues</key>
<array/>
<key>postscriptStemSnapH</key>
<array/>
<key>postscriptStemSnapV</key>
<array/>
<key>unitsPerEm</key>
<integer>1000</integer>
<key>versionMajor</key>
<integer>99999999</integer>
<key>versionMinor</key>
<integer>0</integer>
<key>xHeight</key>
<integer>500</integer>
</dict>
</plist>
5 changes: 5 additions & 0 deletions tests/tx_data/input/flex.ufo/glyphs.background/contents.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>color</key>
<string>0,0.8,0.2,0.7</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>exclam</key>
<string>exclam.glif</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="exclam" format="2">
<advance width="450"/>
<outline>
<contour>
<point x="100" y="0" type="line" name="hintSet0000"/>
<point x="139" y="3" name="flexCurve0001"/>
<point x="178" y="5"/>
<point x="225" y="5" type="curve"/>
<point x="272" y="5"/>
<point x="311" y="3"/>
<point x="350" y="0" type="curve"/>
<point x="350" y="55" type="line"/>
<point x="275" y="55" type="line"/>
<point x="272" y="94"/>
<point x="270" y="133"/>
<point x="270" y="180" type="curve"/>
<point x="270" y="227"/>
<point x="272" y="266"/>
<point x="275" y="305" type="curve"/>
<point x="350" y="305" type="line"/>
<point x="350" y="356" type="line"/>
<point x="311" y="353" name="flexCurve0009"/>
<point x="272" y="351"/>
<point x="225" y="351" type="curve"/>
<point x="178" y="351"/>
<point x="139" y="353"/>
<point x="100" y="356" type="curve"/>
<point x="100" y="305" type="line"/>
<point x="175" y="305" type="line"/>
<point x="178" y="266"/>
<point x="180" y="227"/>
<point x="180" y="180" type="curve"/>
<point x="180" y="133"/>
<point x="178" y="94"/>
<point x="175" y="55" type="curve"/>
<point x="100" y="55" type="line"/>
</contour>
</outline>
<lib>
<dict>
<key>com.adobe.type.autohint.v2</key>
<dict>
<key>flexList</key>
<array>
<string>flexCurve0001</string>
<string>flexCurve0009</string>
</array>
<key>hintSetList</key>
<array>
<dict>
<key>pointTag</key>
<string>hintSet0000</string>
<key>stems</key>
<array>
<string>hstem 0 55</string>
<string>hstem 305 51</string>
<string>vstem 180 90</string>
</array>
</dict>
</array>
<key>id</key>
<string>f64882722fcbd3a3cd1bd6b83061c23a218d3372729f68d04cb7b35036d31b6a6cdaeedeabd23dbb82897de3cddeb26c5aab71440239f4d82569ee4bf8afacd9</string>
</dict>
</dict>
</lib>
</glyph>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>color</key>
<string>0,1,0.25,0.7</string>
</dict>
</plist>
6 changes: 6 additions & 0 deletions tests/tx_data/input/flex.ufo/glyphs/_notdef.glif
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<glyph name=".notdef" format="2">
<advance width="500"/>
<outline>
</outline>
</glyph>
10 changes: 10 additions & 0 deletions tests/tx_data/input/flex.ufo/glyphs/contents.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>.notdef</key>
<string>_notdef.glif</string>
<key>exclam</key>
<string>exclam.glif</string>
</dict>
</plist>
Loading

0 comments on commit 54e4c3c

Please sign in to comment.