summaryrefslogtreecommitdiff
path: root/src/Inter-UI-Regular.ufo
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 /src/Inter-UI-Regular.ufo
parent41f5c1f59fb6e10f3ed85bf4375d8b81dddb9f20 (diff)
downloadinter-7dc293ad6a10acd29db128159cd521d767b67c18.tar.xz
Adds period and comma for tabular numbers feature
Diffstat (limited to 'src/Inter-UI-Regular.ufo')
-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
5 files changed, 92 insertions, 2 deletions
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>