summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-10-01 05:17:13 +0300
committerRasmus Andersson <rasmus@notion.se>2017-10-01 05:17:13 +0300
commit7dc293ad6a10acd29db128159cd521d767b67c18 (patch)
treea2dd163d261cd3b64bcd54935221d522d1e59bce
parent41f5c1f59fb6e10f3ed85bf4375d8b81dddb9f20 (diff)
downloadinter-7dc293ad6a10acd29db128159cd521d767b67c18.tar.xz
Adds period and comma for tabular numbers feature
-rw-r--r--src/Inter-UI-Black.ufo/features.fea2
-rw-r--r--src/Inter-UI-Black.ufo/glyphs/comma.tnum.glif64
-rw-r--r--src/Inter-UI-Black.ufo/glyphs/contents.plist4
-rw-r--r--src/Inter-UI-Black.ufo/glyphs/period.tnum.glif60
-rw-r--r--src/Inter-UI-Black.ufo/lib.plist4
-rw-r--r--src/Inter-UI-Regular.ufo/features.fea12
-rw-r--r--src/Inter-UI-Regular.ufo/glyphs/comma.tnum.glif39
-rw-r--r--src/Inter-UI-Regular.ufo/glyphs/contents.plist4
-rw-r--r--src/Inter-UI-Regular.ufo/glyphs/period.tnum.glif35
-rw-r--r--src/Inter-UI-Regular.ufo/lib.plist4
-rw-r--r--src/glyphorder.txt2
11 files changed, 228 insertions, 2 deletions
diff --git a/src/Inter-UI-Black.ufo/features.fea b/src/Inter-UI-Black.ufo/features.fea
index e466ff5ff..2a42fb476 100644
--- a/src/Inter-UI-Black.ufo/features.fea
+++ b/src/Inter-UI-Black.ufo/features.fea
@@ -3,10 +3,12 @@ include(../features.fea);
@TNUM_L = [
zero one two three five six seven
four.1 six.1 nine.1
+ period comma
];
@TNUM_R = [
zero.tnum one.tnum two.tnum three.tnum five.tnum six.tnum seven.tnum
four.tnum.1 six.tnum.1 nine.tnum.1
+ period.tnum comma.tnum
];
feature tnum {
diff --git a/src/Inter-UI-Black.ufo/glyphs/comma.tnum.glif b/src/Inter-UI-Black.ufo/glyphs/comma.tnum.glif
new file mode 100644
index 000000000..83e4da703
--- /dev/null
+++ b/src/Inter-UI-Black.ufo/glyphs/comma.tnum.glif
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glyph name="comma.tnum" format="1">
+ <advance width="768"/>
+ <outline>
+ <contour>
+ <point x="592" y="348" type="line"/>
+ <point x="232" y="348" type="line"/>
+ <point x="232" y="28" type="line"/>
+ <point x="232" y="-188"/>
+ <point x="148" y="-304"/>
+ <point x="88" y="-428" type="curve"/>
+ <point x="312" y="-540" type="line"/>
+ <point x="472" y="-404"/>
+ <point x="592" y="-168"/>
+ <point x="592" y="56" type="curve"/>
+ </contour>
+ <contour>
+ <point x="620.0" y="364.0" type="move" name="_bottom"/>
+ </contour>
+ <contour>
+ <point x="312.0" y="48.0" type="move" name="_right"/>
+ </contour>
+ </outline>
+ <lib>
+ <dict>
+ <key>com.typemytype.robofont.guides</key>
+ <array>
+ <dict>
+ <key>angle</key>
+ <real>0.0</real>
+ <key>isGlobal</key>
+ <false/>
+ <key>magnetic</key>
+ <integer>5</integer>
+ <key>x</key>
+ <real>0.0</real>
+ <key>y</key>
+ <real>1238.875</real>
+ </dict>
+ <dict>
+ <key>angle</key>
+ <real>0.0</real>
+ <key>isGlobal</key>
+ <false/>
+ <key>magnetic</key>
+ <integer>5</integer>
+ <key>x</key>
+ <real>0.0</real>
+ <key>y</key>
+ <real>763.125</real>
+ </dict>
+ </array>
+ <key>com.typemytype.robofont.mark</key>
+ <array>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>1.0</real>
+ </array>
+ <key>interface.gridadjust.original</key>
+ <string>{'width': 737.0, 'leftMargin': 56, 'rightMargin': 175.0}</string>
+ </dict>
+ </lib>
+</glyph>
diff --git a/src/Inter-UI-Black.ufo/glyphs/contents.plist b/src/Inter-UI-Black.ufo/glyphs/contents.plist
index d1f6c1c7d..202a59405 100644
--- a/src/Inter-UI-Black.ufo/glyphs/contents.plist
+++ b/src/Inter-UI-Black.ufo/glyphs/contents.plist
@@ -622,6 +622,8 @@
<string>colontriangularmod.glif</string>
<key>comma</key>
<string>comma.glif</string>
+ <key>comma.tnum</key>
+ <string>comma.tnum.glif</string>
<key>commaabovecmb</key>
<string>commaabovecmb.glif</string>
<key>commaaboverightcmb</key>
@@ -1380,6 +1382,8 @@
<string>percent.glif</string>
<key>period</key>
<string>period.glif</string>
+ <key>period.tnum</key>
+ <string>period.tnum.glif</string>
<key>periodcentered</key>
<string>periodcentered.glif</string>
<key>perispomenigreekcmb</key>
diff --git a/src/Inter-UI-Black.ufo/glyphs/period.tnum.glif b/src/Inter-UI-Black.ufo/glyphs/period.tnum.glif
new file mode 100644
index 000000000..61bd0e09c
--- /dev/null
+++ b/src/Inter-UI-Black.ufo/glyphs/period.tnum.glif
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glyph name="period.tnum" format="1">
+ <advance width="768"/>
+ <outline>
+ <contour>
+ <point x="384" y="-28" type="curve" smooth="yes"/>
+ <point x="520" y="-28"/>
+ <point x="632" y="84"/>
+ <point x="632" y="224" type="curve" smooth="yes"/>
+ <point x="632" y="360"/>
+ <point x="520" y="472"/>
+ <point x="384" y="472" type="curve" smooth="yes"/>
+ <point x="248" y="472"/>
+ <point x="136" y="360"/>
+ <point x="136" y="224" type="curve" smooth="yes"/>
+ <point x="136" y="84"/>
+ <point x="248" y="-28"/>
+ </contour>
+ </outline>
+ <lib>
+ <dict>
+ <key>com.typemytype.robofont.guides</key>
+ <array>
+ <dict>
+ <key>angle</key>
+ <real>0.0</real>
+ <key>isGlobal</key>
+ <false/>
+ <key>magnetic</key>
+ <integer>5</integer>
+ <key>x</key>
+ <real>0.0</real>
+ <key>y</key>
+ <real>1238.875</real>
+ </dict>
+ <dict>
+ <key>angle</key>
+ <real>0.0</real>
+ <key>isGlobal</key>
+ <false/>
+ <key>magnetic</key>
+ <integer>5</integer>
+ <key>x</key>
+ <real>0.0</real>
+ <key>y</key>
+ <real>763.125</real>
+ </dict>
+ </array>
+ <key>com.typemytype.robofont.mark</key>
+ <array>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>1.0</real>
+ </array>
+ <key>interface.gridadjust.original</key>
+ <string>{'width': 842, 'leftMargin': 165, 'rightMargin': 185}</string>
+ </dict>
+ </lib>
+</glyph>
diff --git a/src/Inter-UI-Black.ufo/lib.plist b/src/Inter-UI-Black.ufo/lib.plist
index dd5b8f4e9..69f128bcf 100644
--- a/src/Inter-UI-Black.ufo/lib.plist
+++ b/src/Inter-UI-Black.ufo/lib.plist
@@ -534,7 +534,9 @@
<string>quotedblbase</string>
<string>quotesinglbase</string>
<string>comma</string>
+ <string>comma.tnum</string>
<string>period</string>
+ <string>period.tnum</string>
<string>ellipsis</string>
<string>colon</string>
<string>colon.case</string>
@@ -2000,7 +2002,9 @@
<string>quotedblbase</string>
<string>quotesinglbase</string>
<string>comma</string>
+ <string>comma.tnum</string>
<string>period</string>
+ <string>period.tnum</string>
<string>ellipsis</string>
<string>colon</string>
<string>colon.case</string>
diff --git a/src/Inter-UI-Regular.ufo/features.fea b/src/Inter-UI-Regular.ufo/features.fea
index 2ac1bc2c7..e7b46d1d1 100644
--- a/src/Inter-UI-Regular.ufo/features.fea
+++ b/src/Inter-UI-Regular.ufo/features.fea
@@ -1,7 +1,15 @@
include(../features.fea);
-@TNUM_L = [one two seven four.1 six.1 nine.1];
-@TNUM_R = [one.tnum two.tnum seven.tnum four.tnum.1 six.tnum.1 nine.tnum.1];
+@TNUM_L = [
+ one two seven
+ four.1 six.1 nine.1
+ period comma
+];
+@TNUM_R = [
+ one.tnum two.tnum seven.tnum
+ four.tnum.1 six.tnum.1 nine.tnum.1
+ period.tnum comma.tnum
+];
feature tnum {
sub @TNUM_L by @TNUM_R;
diff --git a/src/Inter-UI-Regular.ufo/glyphs/comma.tnum.glif b/src/Inter-UI-Regular.ufo/glyphs/comma.tnum.glif
new file mode 100644
index 000000000..5f97684d3
--- /dev/null
+++ b/src/Inter-UI-Regular.ufo/glyphs/comma.tnum.glif
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glyph name="comma.tnum" format="1">
+ <advance width="760"/>
+ <outline>
+ <contour>
+ <point x="540" y="256" type="line"/>
+ <point x="284" y="256" type="line"/>
+ <point x="284" y="64" type="line"/>
+ <point x="284" y="-88"/>
+ <point x="232" y="-228"/>
+ <point x="164" y="-388" type="curve"/>
+ <point x="364" y="-428" type="line"/>
+ <point x="468" y="-272"/>
+ <point x="536" y="-108"/>
+ <point x="540" y="68" type="curve"/>
+ </contour>
+ <contour>
+ <point x="420.0" y="308.0" type="move" name="_bottom"/>
+ </contour>
+ <contour>
+ <point x="152.0" y="100.0" type="move" name="_right"/>
+ </contour>
+ </outline>
+ <lib>
+ <dict>
+ <key>com.typemytype.robofont.mark</key>
+ <array>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>1.0</real>
+ </array>
+ <key>interface.width-adjustments</key>
+ <array>
+ <integer>-16</integer>
+ </array>
+ </dict>
+ </lib>
+</glyph>
diff --git a/src/Inter-UI-Regular.ufo/glyphs/contents.plist b/src/Inter-UI-Regular.ufo/glyphs/contents.plist
index 6d408d377..719706687 100644
--- a/src/Inter-UI-Regular.ufo/glyphs/contents.plist
+++ b/src/Inter-UI-Regular.ufo/glyphs/contents.plist
@@ -622,6 +622,8 @@
<string>colontriangularmod.glif</string>
<key>comma</key>
<string>comma.glif</string>
+ <key>comma.tnum</key>
+ <string>comma.tnum.glif</string>
<key>commaabovecmb</key>
<string>commaabovecmb.glif</string>
<key>commaaboverightcmb</key>
@@ -1378,6 +1380,8 @@
<string>percent.glif</string>
<key>period</key>
<string>period.glif</string>
+ <key>period.tnum</key>
+ <string>period.tnum.glif</string>
<key>periodcentered</key>
<string>periodcentered.glif</string>
<key>perispomenigreekcmb</key>
diff --git a/src/Inter-UI-Regular.ufo/glyphs/period.tnum.glif b/src/Inter-UI-Regular.ufo/glyphs/period.tnum.glif
new file mode 100644
index 000000000..ebb2ca7c1
--- /dev/null
+++ b/src/Inter-UI-Regular.ufo/glyphs/period.tnum.glif
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<glyph name="period.tnum" format="1">
+ <advance width="760"/>
+ <outline>
+ <contour>
+ <point x="380" y="-28" type="curve" smooth="yes"/>
+ <point x="480" y="-28"/>
+ <point x="560" y="52"/>
+ <point x="560" y="152" type="curve" smooth="yes"/>
+ <point x="560" y="248"/>
+ <point x="480" y="328"/>
+ <point x="380" y="328" type="curve" smooth="yes"/>
+ <point x="284" y="328"/>
+ <point x="200" y="252"/>
+ <point x="200" y="152" type="curve" smooth="yes"/>
+ <point x="200" y="52"/>
+ <point x="280" y="-28"/>
+ </contour>
+ </outline>
+ <lib>
+ <dict>
+ <key>com.typemytype.robofont.mark</key>
+ <array>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>0.94</real>
+ <real>1.0</real>
+ </array>
+ <key>interface.width-adjustments</key>
+ <array>
+ <integer>-16</integer>
+ </array>
+ </dict>
+ </lib>
+</glyph>
diff --git a/src/Inter-UI-Regular.ufo/lib.plist b/src/Inter-UI-Regular.ufo/lib.plist
index dfe900b04..2a6ec0ed7 100644
--- a/src/Inter-UI-Regular.ufo/lib.plist
+++ b/src/Inter-UI-Regular.ufo/lib.plist
@@ -631,7 +631,9 @@
<string>quotedblbase</string>
<string>quotesinglbase</string>
<string>comma</string>
+ <string>comma.tnum</string>
<string>period</string>
+ <string>period.tnum</string>
<string>ellipsis</string>
<string>colon</string>
<string>colon.case</string>
@@ -2093,7 +2095,9 @@
<string>quotedblbase</string>
<string>quotesinglbase</string>
<string>comma</string>
+ <string>comma.tnum</string>
<string>period</string>
+ <string>period.tnum</string>
<string>ellipsis</string>
<string>colon</string>
<string>colon.case</string>
diff --git a/src/glyphorder.txt b/src/glyphorder.txt
index 9f1ea9f2f..c9310c9f8 100644
--- a/src/glyphorder.txt
+++ b/src/glyphorder.txt
@@ -335,7 +335,9 @@ quotedblright
quotedblbase
quotesinglbase
comma
+comma.tnum
period
+period.tnum
ellipsis
colon
colon.case