Export ES6 module in fontMetricsData.js (#1072)

* Export ES6 module in fontMetricsData.js

Use ES6 modules export(`export default`)

* Generate fontMetricsData.js

Export ES6 module in fontMetricsData.js(2382c66)
This commit is contained in:
ylemkimon
2018-01-23 22:27:34 +09:00
committed by Kevin Barabash
parent 2a2742453b
commit 732f2a84cc
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ if len(sys.argv) > 1:
props.append('width')
data = json.load(sys.stdin)
sep = "module.exports = {\n "
sep = "export default {\n "
for font in sorted(data):
sys.stdout.write(sep + json.dumps(font))
sep = ": {\n "

View File

@@ -1,4 +1,4 @@
module.exports = {
export default {
"AMS-Regular": {
"65": [0, 0.68889, 0, 0, 0.72222],
"66": [0, 0.68889, 0, 0, 0.66667],