Skip to content

Commit 71fe270

Browse files
committed
Scaled spacing + better pipeline
Scaled spacing to new em space and renamed scripts/moved into scripts dir, gating everything under Makefile. Updated README to reflect new pipeline
1 parent 089f5dd commit 71fe270

11 files changed

Lines changed: 51 additions & 19 deletions

File tree

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
PeterMonoFonts/
21
*.otf
3-
4-
forge/
52
*.sfd
6-
73
*.zip

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
DIR := ${CURDIR}
2+
3+
init:
4+
@./scripts/init.sh
5+
6+
build:
7+
@./scripts/build.sh
8+
9+
clean:
10+
@./scripts/clean.sh
11+
12+
install:
13+
@./scripts/reset_user_fonts.sh
14+

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from the root dir,
2-
* first run `./init.sh` to set up the dependencies
2+
* first run `make init` to set up the dependencies
33
* edit the svg font and save
4-
* run `./release.sh` to build and zip the fonts with fontforge
4+
* run `make build` to build and zip the fonts with fontforge
5+
* run `make install` to install the fonts to your user account (will update if already installed in ~/.fonts/PeterMonoFonts)
56

67
> fontforge docs: https://fontforge.github.io/scripting.html
78

forge/.gitkeep

Whitespace-only changes.

init.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

reset_user_fonts.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

release.sh renamed to scripts/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# run from root dir
22

33
echo
4-
./delete_output.sh
4+
./scripts/clean.sh
55

6-
echo "building Peter Mono Regular..."
6+
echo "forging Peter Mono Regular..."
77
echo
8-
./build.pe regular.svg
8+
./scripts/forge.pe regular.svg
99

1010
tput setaf 2
11-
echo "fonts built:"
11+
echo "fonts forged:"
1212
tput bold
1313
tree PeterMonoFonts
1414
tput sgr0
File renamed without changes.

build.pe renamed to scripts/forge.pe

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ while ( i<$argc )
3939

4040
# make non-cozy version
4141
SelectWorthOutputting();
42-
SetWidth(585);
43-
Transform(100, 0, 0, 100, 2500, 0);
42+
SetWidth(590);
43+
Transform(100, 0, 0, 100, 3000, 0);
4444
SetFontNames("Peter", "Peter Mono", "Peter Mono Regular", "Regular");
4545

4646
outfile=file_name:r + ".sfd";
@@ -49,8 +49,8 @@ while ( i<$argc )
4949

5050
# make comfortable version
5151
SelectWorthOutputting();
52-
SetWidth(635);
53-
Transform(100, 0, 0, 100, 2500, 0);
52+
SetWidth(650);
53+
Transform(100, 0, 0, 100, 3000, 0);
5454
SetFontNames("PeterComfortable", "Peter Mono Comfortable", "Peter Mono Comfortable Regular", "Regular");
5555

5656
outfile=file_name:r + "_comfortable.sfd";

scripts/init.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
mkdir PeterMonoFonts
2+
sudo apt install inkscape fontforge
3+
# Inkscape 0.91 r13725
4+
#
5+
# Copyright (c) 2000-2012 by George Williams.
6+
# Executable based on sources from 14:57 GMT 31-Jul-2012-ML.
7+
# Library based on sources from 14:57 GMT 31-Jul-2012.
8+
# fontforge 20120731
9+
# libfontforge 20120731-ML
10+

0 commit comments

Comments
 (0)