From adbf3d50ca137f1dfce706d86462351ccfef8284 Mon Sep 17 00:00:00 2001 From: John Haugeland Date: Sun, 24 Sep 2017 11:18:43 -0700 Subject: [PATCH 1/2] Add a package.json so that this can be published to NPM --- package.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..5b4b3a2 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "spark", + "version": "1.0.0", + "description": "Spark - six fonts for creating sparklines", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/aftertheflood/spark.git" + }, + "keywords": [ + "spark", + "sparkline", + "font" + ], + "author": "Michael Gallagher", + "license": "MIT", + "bugs": { + "url": "https://github.com/aftertheflood/spark/issues" + }, + "homepage": "https://github.com/aftertheflood/spark#readme" +} From 020cc37ab3d9fce6592c01dc0aefa5eea339940b Mon Sep 17 00:00:00 2001 From: John Haugeland Date: Sun, 24 Sep 2017 11:53:35 -0700 Subject: [PATCH 2/2] add CSS for convenient web use --- Source/css/all_spark_fonts.css | 65 ++++++++++++++++++++++++++++++++++ Source/css/sparkbar_medium.css | 9 +++++ Source/css/sparkbar_narrow.css | 9 +++++ Source/css/sparkbar_thin.css | 9 +++++ Source/css/sparkdot_line.css | 9 +++++ Source/css/sparkdot_medium.css | 9 +++++ Source/css/sparkdot_small.css | 9 +++++ 7 files changed, 119 insertions(+) create mode 100644 Source/css/all_spark_fonts.css create mode 100644 Source/css/sparkbar_medium.css create mode 100644 Source/css/sparkbar_narrow.css create mode 100644 Source/css/sparkbar_thin.css create mode 100644 Source/css/sparkdot_line.css create mode 100644 Source/css/sparkdot_medium.css create mode 100644 Source/css/sparkdot_small.css diff --git a/Source/css/all_spark_fonts.css b/Source/css/all_spark_fonts.css new file mode 100644 index 0000000..e4d7dbf --- /dev/null +++ b/Source/css/all_spark_fonts.css @@ -0,0 +1,65 @@ +/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on September 24, 2017 */ + +@font-face { + font-family: 'sparkbar'; + src: url('Spark - Bar - Medium.otf') format('otf'), + url('spark-bar-medium-webfont.woff2') format('woff2'), + url('spark-bar-medium-webfont.woff') format('woff'); + font-weight: 700; + font-style: normal; +} + + + +@font-face { + font-family: 'sparkbar'; + src: url('Spark - Bar - Narrow.otf') format('otf'), + url('spark-bar-narrow-webfont.woff2') format('woff2'), + url('spark-bar-narrow-webfont.woff') format('woff'); + font-weight: 400; + font-style: normal; +} + + + +@font-face { + font-family: 'sparkdot-line'; + src: url('Spark - Dot-line - Medium.otf') format('otf'), + url('spark-dotline-medium-webfont.woff2') format('woff2'), + url('spark-dotline-medium-webfont.woff') format('woff'); + font-weight: 700; + font-style: normal; +} + + + +@font-face { + font-family: 'sparkbar'; + src: url('Spark - Bar - Thin.otf') format('otf'), + url('spark-bar-thin-webfont.woff2') format('woff2'), + url('spark-bar-thin-webfont.woff') format('woff'); + font-weight: 100; + font-style: normal; +} + + + +@font-face { + font-family: 'sparkdot'; + src: url('Spark - Dot - Medium.otf') format('otf'), + url('spark-dot-medium-webfont.woff2') format('woff2'), + url('spark-dot-medium-webfont.woff') format('woff'); + font-weight: 700; + font-style: normal; +} + + + +@font-face { + font-family: 'sparkdot'; + src: url('Spark - Dot - Small.otf') format('otf'), + url('spark-dot-small-webfont.woff2') format('woff2'), + url('spark-dot-small-webfont.woff') format('woff'); + font-weight: 400; + font-style: normal; +} diff --git a/Source/css/sparkbar_medium.css b/Source/css/sparkbar_medium.css new file mode 100644 index 0000000..52a8df9 --- /dev/null +++ b/Source/css/sparkbar_medium.css @@ -0,0 +1,9 @@ + +@font-face { + font-family: 'sparkbar'; + src: url('Spark - Bar - Medium.otf') format('otf'), + url('spark-bar-medium-webfont.woff2') format('woff2'), + url('spark-bar-medium-webfont.woff') format('woff'); + font-weight: 700; + font-style: normal; +} diff --git a/Source/css/sparkbar_narrow.css b/Source/css/sparkbar_narrow.css new file mode 100644 index 0000000..c102738 --- /dev/null +++ b/Source/css/sparkbar_narrow.css @@ -0,0 +1,9 @@ + +@font-face { + font-family: 'sparkbar'; + src: url('Spark - Bar - Narrow.otf') format('otf'), + url('spark-bar-narrow-webfont.woff2') format('woff2'), + url('spark-bar-narrow-webfont.woff') format('woff'); + font-weight: 400; + font-style: normal; +} diff --git a/Source/css/sparkbar_thin.css b/Source/css/sparkbar_thin.css new file mode 100644 index 0000000..4f4937e --- /dev/null +++ b/Source/css/sparkbar_thin.css @@ -0,0 +1,9 @@ + +@font-face { + font-family: 'sparkbar'; + src: url('Spark - Bar - Thin.otf') format('otf'), + url('spark-bar-thin-webfont.woff2') format('woff2'), + url('spark-bar-thin-webfont.woff') format('woff'); + font-weight: 100; + font-style: normal; +} diff --git a/Source/css/sparkdot_line.css b/Source/css/sparkdot_line.css new file mode 100644 index 0000000..0b373bd --- /dev/null +++ b/Source/css/sparkdot_line.css @@ -0,0 +1,9 @@ + +@font-face { + font-family: 'sparkdot-line'; + src: url('Spark - Dot-line - Medium.otf') format('otf'), + url('spark-dotline-medium-webfont.woff2') format('woff2'), + url('spark-dotline-medium-webfont.woff') format('woff'); + font-weight: 700; + font-style: normal; +} diff --git a/Source/css/sparkdot_medium.css b/Source/css/sparkdot_medium.css new file mode 100644 index 0000000..3fb27b9 --- /dev/null +++ b/Source/css/sparkdot_medium.css @@ -0,0 +1,9 @@ + +@font-face { + font-family: 'sparkdot'; + src: url('Spark - Dot - Medium.otf') format('otf'), + url('spark-dot-medium-webfont.woff2') format('woff2'), + url('spark-dot-medium-webfont.woff') format('woff'); + font-weight: 700; + font-style: normal; +} diff --git a/Source/css/sparkdot_small.css b/Source/css/sparkdot_small.css new file mode 100644 index 0000000..de797ca --- /dev/null +++ b/Source/css/sparkdot_small.css @@ -0,0 +1,9 @@ + +@font-face { + font-family: 'sparkdot'; + src: url('Spark - Dot - Small.otf') format('otf'), + url('spark-dot-small-webfont.woff2') format('woff2'), + url('spark-dot-small-webfont.woff') format('woff'); + font-weight: 400; + font-style: normal; +}