Skip to content

Commit

Permalink
Merge pull request #1123 from googlefonts/c_test
Browse files Browse the repository at this point in the history
Add test file for #1115
  • Loading branch information
rsheeter authored Nov 15, 2024
2 parents cc4852f + d72eb8a commit d8fc6b9
Show file tree
Hide file tree
Showing 11 changed files with 122 additions and 0 deletions.
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>inner</key>
<string>inner.glif</string>
<key>outer</key>
<string>outer.glif</string>
</dict>
</plist>
10 changes: 10 additions & 0 deletions resources/testdata/DoubleComponentError/Bold.ufo/glyphs/inner.glif
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="inner" format="2">
<outline>
<contour>
<point x="10" y="10"/>
<point x="30" y="20"/>
<point x="10" y="30"/>
</contour>
</outline>
</glyph>
12 changes: 12 additions & 0 deletions resources/testdata/DoubleComponentError/Bold.ufo/glyphs/outer.glif
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="outer" format="2">
<outline>
<contour>
<point x="30" y="10"/>
<point x="50" y="20"/>
<point x="30" y="30"/>
</contour>
<component base="inner" xOffset="100"/>
<component base="inner"/>
</outline>
</glyph>
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">
<array>
<array>
<string>public.default</string>
<string>glyphs</string>
</array>
</array>
</plist>
10 changes: 10 additions & 0 deletions resources/testdata/DoubleComponentError/Bold.ufo/metainfo.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>creator</key>
<string>com.github.fonttools.ufoLib</string>
<key>formatVersion</key>
<integer>3</integer>
</dict>
</plist>
18 changes: 18 additions & 0 deletions resources/testdata/DoubleComponentError/OuterInner.designspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version='1.0' encoding='UTF-8'?>
<designspace format="5.0">
<axes>
<axis tag="wght" name="Weight" minimum="400" maximum="700" default="400"/>
</axes>
<sources>
<source filename="Regular.ufo">
<location>
<dimension name="Weight" xvalue="400"/>
</location>
</source>
<source filename="Bold.ufo">
<location>
<dimension name="Weight" xvalue="700"/>
</location>
</source>
</sources>
</designspace>
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>inner</key>
<string>inner.glif</string>
<key>outer</key>
<string>outer.glif</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="inner" format="2">
<outline>
<contour>
<point x="10" y="10"/>
<point x="30" y="20"/>
<point x="10" y="30"/>
</contour>
</outline>
</glyph>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<glyph name="outer" format="2">
<outline>
<contour>
<point x="30" y="10"/>
<point x="50" y="20"/>
<point x="30" y="30"/>
</contour>
<component base="inner"/>
<component base="inner"/>
</outline>
</glyph>
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">
<array>
<array>
<string>public.default</string>
<string>glyphs</string>
</array>
</array>
</plist>
10 changes: 10 additions & 0 deletions resources/testdata/DoubleComponentError/Regular.ufo/metainfo.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>creator</key>
<string>com.github.fonttools.ufoLib</string>
<key>formatVersion</key>
<integer>3</integer>
</dict>
</plist>

0 comments on commit d8fc6b9

Please sign in to comment.