-
Notifications
You must be signed in to change notification settings - Fork 1
/
ttf-fonts.gmk
138 lines (118 loc) · 7.84 KB
/
ttf-fonts.gmk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
##-*- makefile -*-############################################################
#
# Copyright (c) 2024 Detlef Groth.
# License: GPL as MicroEmacs
#
##############################################################################
anonymous: anonymous-pro-medium.ttf
anonymous-pro-medium.ttf:
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/anonymous-pro/anonymous-pro.ttf -O anonymous-pro-medium.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/anonymous-pro/anonymous-pro-bold.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/anonymous-pro/license.txt -O anonymous-pro-license.txt
cascadia-code: cascadia-code-medium.ttf
cascadia-code-medium.ttf:
wget https://github.com/microsoft/cascadia-code/releases/download/v2111.01/CascadiaCode-2111.01.zip
unzip -p CascadiaCode-2111.01.zip ttf/static/CascadiaCode-Bold.ttf > cascadia-code-bold.ttf
unzip -p CascadiaCode-2111.01.zip ttf/static/CascadiaCode-Regular.ttf > cascadia-code-medium.ttf
unzip -p CascadiaCode-2111.01.zip ttf/static/CascadiaCode-SemiBold.ttf > cascadia-code-semibold.ttf
wget https://raw.githubusercontent.com/microsoft/cascadia-code/main/LICENSE -O cascadia-code-license.txt
rm CascadiaCode-2111.01.zip
## this version works
courier-prime: courier-prime-medium.ttf
courier-prime-medium.ttf:
wget https://github.com/quoteunquoteapps/CourierPrime/raw/master/fonts/ttf/CourierPrime-Regular.ttf -O courier-prime-medium.ttf
wget https://github.com/quoteunquoteapps/CourierPrime/raw/master/fonts/ttf/CourierPrime-Bold.ttf -O courier-prime-bold.ttf
wget https://github.com/quoteunquoteapps/CourierPrime/blob/master/OFL.txt -O courier-prime-license.txt
chivo-mono: chivo-mono-medium.ttf
chivo-mono-medium.ttf:
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/chivo.ttf -O chivo-mono-medium.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/chivo-bold.ttf -O chivo-mono-bold.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/OFL.txt -O chivo-mono-license.txt
dejavu: dejavu-sans-mono-medium.ttf
dejavu-sans-mono-medium.ttf:
wget https://github.com/go-fonts/dejavu/raw/main/LICENSE-DejaVu -O dejavu-sans-mono-license.txt
wget https://github.com/go-fonts/dejavu/raw/main/dejavusansmono/DejaVuSansMono.ttf -O dejavu-sans-mono-medium.ttf
wget https://github.com/go-fonts/dejavu/raw/main/dejavusansmonobold/DejaVuSansMono-Bold.ttf -O dejavu-sans-mono-bold.ttf
fira-code: fira-code-medium.ttf
fira-code-medium.ttf:
wget https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip
mkdir fira
cd fira && unzip ../Fira_Code_v6.2.zip
cp fira/ttf/FiraCode-Regular.ttf fira-code-medium.ttf
cp fira/ttf/FiraCode-Bold.ttf fira-code-bold.ttf
rm -rf fira
rm Fira_Code_v6.2.zip
wget https://github.com/tonsky/FiraCode/raw/master/LICENSE -O fira-code-license.txt
#inconsolata: inconsolata-medium.ttf
#inconsolata-medium.ttf:
# wget https://github.com/googlefonts/Inconsolata/blob/main/fonts/ttf/Inconsolata-Medium.ttf -O inconsolata-medium.ttf
# wget https://github.com/googlefonts/Inconsolata/blob/main/fonts/ttf/Inconsolata-Bold.ttf -O inconsolata-bold.ttf
# wget https://github.com/googlefonts/Inconsolata/raw/main/OFL.txt -O inconsolata-license.txt
## works, but inconsolata above does not work
inconsolata: inconsolata-go-medium.ttf
inconsolata-go-medium.ttf:
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/inconsolata-go/inconsolata-go.ttf -O inconsolata-go-medium.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/inconsolata-go/inconsolata-go-bold.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/inconsolata-go/license.txt -O inconsolata-go-license.txt
# do not work wide spacing
#julia-mono: julia-mono-medium.ttf
#julia-mono-medium.ttf:
# wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/julia-mono/julia-mono-bold.ttf
# wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/julia-mono/julia-mono.ttf -O julia-mono-medium.ttf
# wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/julia-mono/LICENSE -O julia-mono-license.txt
liberation-mono: liberation-mono-medium.ttf
liberation-mono-medium.ttf:
wget https://github.com/go-fonts/liberation/raw/main/LICENSE-SIL -o liberation-mono-license.txt
wget https://github.com/go-fonts/liberation/raw/main/liberationmonoregular/LiberationMono-Regular.ttf -O liberation-mono-medium.ttf
wget https://github.com/go-fonts/liberation/raw/main/liberationmonobold/LiberationMono-Bold.ttf -O liberation-mono-bold.ttf
proggy-vector: proggy-vector-medium.ttf
proggy-vector-medium.ttf:
wget https://github.com/bluescan/proggyfonts/raw/master/ProggyVector/ProggyVector-Regular.ttf -O proggy-vector-medium.ttf
wget https://github.com/bluescan/proggyfonts/raw/master/ProggyVector/ProggyVector_Licence.txt -O proggy-vector-license.txt
proggy-squaresz: proggy-squaresz-medium.ttf
proggy-squaresz-medium.ttf:
wget https://github.com/bluescan/proggyfonts/raw/master/ProggyOriginal/ProggySquareSZ.ttf -O proggy-squaresz-medium.ttf
wget https://github.com/bluescan/proggyfonts/raw/master/LICENSE -O proggy-squaresz-license.txt
source-code-pro: source-code-pro-medium.ttf
source-code-pro-medium.ttf:
wget https://github.com/adobe-fonts/source-code-pro/raw/release/LICENSE.md -O source-code-pro-license.txt
wget https://github.com/adobe-fonts/source-code-pro/raw/release/TTF/SourceCodePro-Bold.ttf -O source-code-pro-bold.ttf
wget https://github.com/adobe-fonts/source-code-pro/raw/release/TTF/SourceCodePro-Regular.ttf -O source-code-pro-medium.ttf
terminus: terminus-medium.ttf
terminus-medium.ttf:
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/terminus/terminus-bold.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/terminus/terminus.ttf -O terminus-medium.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/terminus/license.txt -O terminus-license.txt
ubuntu-mono: ubuntu-mono-medium.ttf
ubuntu-mono-medium.ttf:
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/ubuntu/ubuntu-bold.ttf -O ubuntu-mono-bold.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/ubuntu/ubuntu.ttf -O ubuntu-mono-medium.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/ubuntu/license.txt -O ubuntu-license.txt
index:
mkfontscale .
mkfontdir .
sed -i 's/-c-/-m-/' fonts.*
sed -i 's/ semibold//' fonts.*
package:
-rm -rf ttf-fonts
mkdir ttf-fonts
mv *.ttf ttf-fonts
mv fonts.* ttf-fonts/
mv *-license.txt ttf-fonts/
echo "Installation of these fonts as X11-fonts" > Readme.txt
echo -e 'Run inside the folder ttf-fonts:\n\n xset +fp `pwd`\n xset fp rehash\n\n' >> Readme.txt
echo -e "Afterwards you might use these fonts. Check the file fonts.dir to see the available fonts!\n" >> Readme.txt
echo "Or use xfontsel to see the fonts and have a preview." >> Readme.txt
mv Readme.txt ttf-fonts/Readme.txt
echo -e '#!/bin/sh\nsleep 5 # wait for server startup\nxset +fp ~/.local/share/fonts\nxset fp rehash\n' > ttf-fonts/fontpath.sh
chmod 755 ttf-fonts/fontpath.sh
echo -e '# place this file into ~/.config/autostart\n[Desktop Entry]\nName=Fontpath\nComment=Extend fontpath for .local/share/fonts\nExec=sh ~/.local/share/fonts/fontpath.sh\nType=Application\nCategories=System\n' > ttf-fonts/fontpath.desktop
zip ttf-fonts.zip ttf-fonts/*
install:
if ! test -d ~/.local/share/fonts; then mkdir ~/.local/share/fonts; fi
cp ttf-fonts/* ~/.local/share/fonts
xset +fp ~/.local/share/fonts/
xset fp rehash
all: anonymous cascadia-code courier-prime chivo-mono dejavu fira-code inconsolata \
liberation-mono proggy-vector proggy-squaresz source-code-pro terminus ubuntu-mono \
index package