Skip to content

Commit 0c04109

Browse files
committed
Normalize patterns.sfd, name arrow2 points T, B
1 parent 24deef2 commit 0c04109

File tree

11 files changed

+467
-20
lines changed

11 files changed

+467
-20
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ regen:
1919
./scripts/tsv_to_mark.py build_data/top.tsv > fea/mark.fea
2020
./scripts/build_ccmp.py > fea/ccmp.fea
2121
./scripts/regenerate_ufo_glyphs_from_sfd.py
22+
# Patterns
23+
fontforge -lang=py -c 'f=fontforge.open("patterns.sfd");f.generate("patterns.ufo")'
24+
sfdnormalize patterns.sfd patterns_temp.sfd && mv patterns_temp.sfd patterns.sfd
2225

2326
# Build all the monoline fonts in dist/
2427
.PHONY: monoline

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Like all my fonts except my earliest work, no non-free software was used at any
4040
* GNU find
4141
* GNU make
4242
* FontForge (w/Python API)
43+
* [`sfdnormalize`](https://github.com/ctrlcctrlv/sfdnormalize)
4344
* MFEK/stroke (for building the dotted fonts and fonts with arrows for outlines)
4445
* Inkscape (for building the color fonts)
4546
* xq (for some SVG stuff, only used in color fonts)

patterns.sfd

Lines changed: 390 additions & 0 deletions
Large diffs are not rendered by default.

patterns.ufo/features.fea

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#Mark attachment classes (defined in GDEF, used in lookupflags)
33

4-
@GDEF_Simple = [\NameMe.0 \arrow \dot \pencil \arrow2 \serif \cjk ];
4+
@GDEF_Simple = [\NameMe.0 \arrow \dot \pencil \arrow2 \serif \cjk_uptick \longarrow ];
55

66
table GDEF {
77
GlyphClassDef @GDEF_Simple, , , ;

patterns.ufo/fontinfo.plist

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33
<plist version="1.0">
44
<dict>
55
<key>familyName</key>
6-
<string>arrow</string>
6+
<string>patterns</string>
77
<key>styleName</key>
88
<string>Regular</string>
99
<key>styleMapFamilyName</key>
10-
<string>arrow</string>
10+
<string>patterns</string>
1111
<key>versionMajor</key>
1212
<integer>1</integer>
1313
<key>versionMinor</key>
1414
<integer>0</integer>
15-
<key>copyright</key>
16-
<string>Copyright (c) 2021, Unknown</string>
1715
<key>unitsPerEm</key>
1816
<integer>1000</integer>
1917
<key>ascender</key>
@@ -29,15 +27,15 @@
2927
<key>openTypeHheaAscender</key>
3028
<integer>580</integer>
3129
<key>openTypeHheaDescender</key>
32-
<integer>-55</integer>
30+
<integer>-70</integer>
3331
<key>openTypeHheaLineGap</key>
3432
<integer>0</integer>
3533
<key>openTypeNameVersion</key>
3634
<string>Version 1.000</string>
3735
<key>postscriptFontName</key>
38-
<string>arrow</string>
36+
<string>patterns</string>
3937
<key>postscriptFullName</key>
40-
<string>arrow</string>
38+
<string>patterns</string>
4139
<key>postscriptWeightName</key>
4240
<string>Regular</string>
4341
<key>postscriptUnderlineThickness</key>

patterns.ufo/glyphs/arrow2.glif

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<glyph name="arrow2" format="2">
3-
<advance width="1000"/>
3+
<advance width="104"/>
44
<outline>
55
<contour>
6-
<point x="-14" y="37" type="line"/>
7-
<point x="4.5" y="55.5" type="line"/>
8-
<point x="60" y="0" type="line"/>
9-
<point x="4.5" y="-55" type="line"/>
10-
<point x="-14" y="-37" type="line"/>
11-
<point x="10" y="-13" type="line"/>
12-
<point x="-44" y="-13" type="line"/>
13-
<point x="-44" y="13" type="line"/>
14-
<point x="10" y="13" type="line"/>
6+
<point x="30" y="37" type="line"/>
7+
<point x="48.5" y="55.5" type="line"/>
8+
<point x="104" y="0" type="line"/>
9+
<point x="48.5" y="-55" type="line"/>
10+
<point x="30" y="-37" type="line"/>
11+
<point x="54" y="-13" type="line"/>
12+
<point x="0" y="-13" type="line" name="B"/>
13+
<point x="0" y="13" type="line" name="T"/>
14+
<point x="54" y="13" type="line"/>
1515
</contour>
1616
</outline>
1717
</glyph>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<glyph name="cjk_uptick" format="2">
3+
<advance width="1000"/>
4+
<outline>
5+
<contour>
6+
<point x="151" y="402" type="move"/>
7+
<point x="310" y="402" type="line"/>
8+
<point x="381" y="473" type="line"/>
9+
<point x="483" y="372" type="line"/>
10+
<point x="483" y="360" type="line"/>
11+
<point x="151" y="360" type="line"/>
12+
</contour>
13+
</outline>
14+
</glyph>

patterns.ufo/glyphs/contents.plist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
<string>arrow2.glif</string>
1515
<key>serif</key>
1616
<string>serif.glif</string>
17-
<key>cjk</key>
18-
<string>cjk.glif</string>
17+
<key>cjk_uptick</key>
18+
<string>cjk_uptick.glif</string>
19+
<key>longarrow</key>
20+
<string>longarrow.glif</string>
1921
</dict>
2022
</plist>

patterns.ufo/glyphs/longarrow.glif

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<glyph name="longarrow" format="2">
3+
<advance width="830"/>
4+
<outline>
5+
<contour>
6+
<point x="741" y="52" type="line"/>
7+
<point x="759.5" y="70.5" type="line"/>
8+
<point x="830" y="0" type="line"/>
9+
<point x="759.5" y="-70" type="line"/>
10+
<point x="741" y="-52" type="line"/>
11+
<point x="780" y="-13" type="line"/>
12+
<point x="0" y="-13" type="line"/>
13+
<point x="0" y="13" type="line"/>
14+
<point x="780" y="13" type="line"/>
15+
</contour>
16+
</outline>
17+
</glyph>

patterns.ufo/glyphs/serif.glif

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<glyph name="serif" format="2">
3+
<advance width="1000"/>
4+
<outline>
5+
<contour>
6+
<point x="482" y="580" type="move"/>
7+
<point x="482" y="428" type="line" smooth="yes"/>
8+
<point x="482" y="342.569"/>
9+
<point x="492" y="300"/>
10+
<point x="542" y="300" type="curve" smooth="yes"/>
11+
<point x="600" y="300" type="line"/>
12+
<point x="600" y="199" type="line"/>
13+
<point x="72" y="199" type="line"/>
14+
<point x="72" y="300" type="line"/>
15+
<point x="130" y="300" type="line" smooth="yes"/>
16+
<point x="180" y="300"/>
17+
<point x="190" y="342.569"/>
18+
<point x="190" y="428" type="curve" smooth="yes"/>
19+
<point x="190" y="580" type="line"/>
20+
</contour>
21+
</outline>
22+
</glyph>

0 commit comments

Comments
 (0)