Skip to content

Commit 7cbab47

Browse files
committed
added line spacing modification shell scripts
1 parent 1239c78 commit 7cbab47

File tree

5 files changed

+110
-0
lines changed

5 files changed

+110
-0
lines changed

tools/line-spacing/line10.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# ////////////////////////////////////////////////////////////
4+
#
5+
# line10.sh
6+
# A shell script that modifies all .otf and .ttf fonts to
7+
# 10% UPM line spacing
8+
# Copyright 2016 Christopher Simpkins
9+
# MIT License
10+
#
11+
# ////////////////////////////////////////////////////////////
12+
13+
# Check for font-line application
14+
which font-line
15+
16+
# if not present install it
17+
if [[ $? -ne 0 ]]; then
18+
pip install font-line
19+
fi
20+
21+
# modify all .ttf and .otf files with 10% UPM line spacing
22+
font-line percent 10 *.ttf *.otf

tools/line-spacing/line15.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# ////////////////////////////////////////////////////////////
4+
#
5+
# line15.sh
6+
# A shell script that modifies all .otf and .ttf fonts to
7+
# 15% UPM line spacing
8+
# Copyright 2016 Christopher Simpkins
9+
# MIT License
10+
#
11+
# ////////////////////////////////////////////////////////////
12+
13+
# Check for font-line application
14+
which font-line
15+
16+
# if not present install it
17+
if [[ $? -ne 0 ]]; then
18+
pip install font-line
19+
fi
20+
21+
# modify all .ttf and .otf files with 15% UPM line spacing
22+
font-line percent 15 *.ttf *.otf

tools/line-spacing/line20.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# ////////////////////////////////////////////////////////////
4+
#
5+
# line20.sh
6+
# A shell script that modifies all .otf and .ttf fonts to
7+
# 20% UPM line spacing
8+
# Copyright 2016 Christopher Simpkins
9+
# MIT License
10+
#
11+
# ////////////////////////////////////////////////////////////
12+
13+
# Check for font-line application
14+
which font-line
15+
16+
# if not present install it
17+
if [[ $? -ne 0 ]]; then
18+
pip install font-line
19+
fi
20+
21+
# modify all .ttf and .otf files with 20% UPM line spacing
22+
font-line percent 20 *.ttf *.otf

tools/line-spacing/line25.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# ////////////////////////////////////////////////////////////
4+
#
5+
# line25.sh
6+
# A shell script that modifies all .otf and .ttf fonts to
7+
# 25% UPM line spacing
8+
# Copyright 2016 Christopher Simpkins
9+
# MIT License
10+
#
11+
# ////////////////////////////////////////////////////////////
12+
13+
# Check for font-line application
14+
which font-line
15+
16+
# if not present install it
17+
if [[ $? -ne 0 ]]; then
18+
pip install font-line
19+
fi
20+
21+
# modify all .ttf and .otf files with 25% UPM line spacing
22+
font-line percent 25 *.ttf *.otf

tools/line-spacing/line30.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# ////////////////////////////////////////////////////////////
4+
#
5+
# line30.sh
6+
# A shell script that modifies all .otf and .ttf fonts to
7+
# 30% UPM line spacing
8+
# Copyright 2016 Christopher Simpkins
9+
# MIT License
10+
#
11+
# ////////////////////////////////////////////////////////////
12+
13+
# Check for font-line application
14+
which font-line
15+
16+
# if not present install it
17+
if [[ $? -ne 0 ]]; then
18+
pip install font-line
19+
fi
20+
21+
# modify all .ttf and .otf files with 30% UPM line spacing
22+
font-line percent 30 *.ttf *.otf

0 commit comments

Comments
 (0)