Преглед на файлове

added line spacing modification shell scripts

Chris Simpkins преди 9 години
родител
ревизия
7cbab47042
променени са 5 файла, в които са добавени 110 реда и са изтрити 0 реда
  1. 22 0
      tools/line-spacing/line10.sh
  2. 22 0
      tools/line-spacing/line15.sh
  3. 22 0
      tools/line-spacing/line20.sh
  4. 22 0
      tools/line-spacing/line25.sh
  5. 22 0
      tools/line-spacing/line30.sh

+ 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 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 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 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 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 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