Selaa lähdekoodia

Merge branch 'master' into development

* master:
  clarified details of fonts that are modified in script header
  updated information about line spacing modification shell scripts
  added information about new line spacing modification shell scripts
  added line spacing modification shell scripts
Chris Simpkins 9 vuotta sitten
vanhempi
commit
5c89c7adaa

+ 2 - 0
README.md

@@ -32,6 +32,8 @@ You can now modify the default line spacing in Hack fonts with our new `font-lin
 
 https://github.com/source-foundry/font-line
 
+or [use one of our handy shell scripts](https://github.com/chrissimpkins/Hack/tree/master/tools/line-spacing) that automates the `font-line` install and line spacing modification process for a range of line spacing % UPM values between 10 - 30%.  Select the script that fits your needs and execute it in the download directory that contains your .ttf and/or .otf font files **before you install them**.
+
 
 ### About
 

+ 22 - 0
tools/line-spacing/line10.sh

@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# ////////////////////////////////////////////////////////////
+#
+# line10.sh
+#  A shell script that modifies all .otf and .ttf fonts in the
+#  working directory to 10% UPM line spacing
+#  Copyright 2016 Christopher Simpkins
+#  MIT License
+#
+# ////////////////////////////////////////////////////////////
+
+# Check for font-line application
+which font-line
+
+# if not present install it
+if [[ $? -ne 0 ]]; then
+	pip install font-line
+fi
+
+# modify all .ttf and .otf files with 10% UPM line spacing
+font-line percent 10 *.ttf *.otf

+ 22 - 0
tools/line-spacing/line15.sh

@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# ////////////////////////////////////////////////////////////
+#
+# line15.sh
+#  A shell script that modifies all .otf and .ttf fonts in the
+#  working directory to 15% UPM line spacing
+#  Copyright 2016 Christopher Simpkins
+#  MIT License
+#
+# ////////////////////////////////////////////////////////////
+
+# Check for font-line application
+which font-line
+
+# if not present install it
+if [[ $? -ne 0 ]]; then
+	pip install font-line
+fi
+
+# modify all .ttf and .otf files with 15% UPM line spacing
+font-line percent 15 *.ttf *.otf

+ 22 - 0
tools/line-spacing/line20.sh

@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# ////////////////////////////////////////////////////////////
+#
+# line20.sh
+#  A shell script that modifies all .otf and .ttf fonts in the
+#  working directory to 20% UPM line spacing
+#  Copyright 2016 Christopher Simpkins
+#  MIT License
+#
+# ////////////////////////////////////////////////////////////
+
+# Check for font-line application
+which font-line
+
+# if not present install it
+if [[ $? -ne 0 ]]; then
+	pip install font-line
+fi
+
+# modify all .ttf and .otf files with 20% UPM line spacing
+font-line percent 20 *.ttf *.otf

+ 22 - 0
tools/line-spacing/line25.sh

@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# ////////////////////////////////////////////////////////////
+#
+# line25.sh
+#  A shell script that modifies all .otf and .ttf fonts in the
+#  working directory to 25% UPM line spacing
+#  Copyright 2016 Christopher Simpkins
+#  MIT License
+#
+# ////////////////////////////////////////////////////////////
+
+# Check for font-line application
+which font-line
+
+# if not present install it
+if [[ $? -ne 0 ]]; then
+	pip install font-line
+fi
+
+# modify all .ttf and .otf files with 25% UPM line spacing
+font-line percent 25 *.ttf *.otf

+ 22 - 0
tools/line-spacing/line30.sh

@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# ////////////////////////////////////////////////////////////
+#
+# line30.sh
+#  A shell script that modifies all .otf and .ttf fonts in the
+#  working directory to 30% UPM line spacing
+#  Copyright 2016 Christopher Simpkins
+#  MIT License
+#
+# ////////////////////////////////////////////////////////////
+
+# Check for font-line application
+which font-line
+
+# if not present install it
+if [[ $? -ne 0 ]]; then
+	pip install font-line
+fi
+
+# modify all .ttf and .otf files with 30% UPM line spacing
+font-line percent 30 *.ttf *.otf