Skip to content

Commit fcccf35

Browse files
committed
adding weight option and adding dejavu sans mono
1 parent 82e18a2 commit fcccf35

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/bdf-fonts.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/chivo.ttf
3434
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/chivo-bold.ttf
3535
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/OFL.txt -O chivo-license.txt
36+
wget https://github.com/go-fonts/dejavu/raw/main/LICENSE-DejaVu -O dejavu-license.txt
37+
wget https://github.com/go-fonts/dejavu/raw/main/dejavusansmono/DejaVuSansMono.ttf -O dejavu-sans-mono.ttf
38+
wget https://github.com/go-fonts/dejavu/raw/main/dejavusansmonobold/DejaVuSansMono-Bold.ttf -O dejavu-sans-mono-bold.ttf
3639
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/inconsolata-go/inconsolata-go.ttf
3740
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/inconsolata-go/inconsolata-go-bold.ttf
3841
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/inconsolata-go/license.txt -O inconsolata-go-license.txt
@@ -61,6 +64,9 @@ jobs:
6164
bash ../fonts/ttf2bdf.sh "chivo mono" chivo-bold.ttf "chivo-mono-bold"
6265
bash ../fonts/ttf2bdf.sh "courier prime" courier-prime.ttf "courier-prime-medium"
6366
bash ../fonts/ttf2bdf.sh "courier prime" courier-prime-bold.ttf "courier-prime-bold"
67+
bash ../fonts/ttf2bdf.sh "dejavu sans mono" dejavu-sans-mono.ttf "dejavu-sans-mono-medium"
68+
bash ../fonts/ttf2bdf.sh "dejavu sans mono" dejavu-sans-mono-bold.ttf "dejavu-sans-mono-bold"
69+
bash ../fonts/ttf2bdf.sh "courier prime" courier-prime-bold.ttf "courier-prime-bold"
6470
bash ../fonts/ttf2bdf.sh "inconsolata go" inconsolata-go.ttf "inconsolata-go-medium"
6571
bash ../fonts/ttf2bdf.sh "inconsolata go" inconsolata-go-bold.ttf "inconsolata-go-bold"
6672
bash ../fonts/ttf2bdf.sh "julia mono" julia-mono.ttf "julia-mono-medium"

fonts/ttf2bdf.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
function ttf2bdf {
22
MAPFILE=`dirname $0`/cp1252.txt
33
echo "Using $MAPFILE"
4+
45
if [ -z $3 ]; then
56
echo -e "ttf2bdf - create X11 fonts from TTF fonts and make then available for X11-apps"
67
echo -e "Usage: ttf2bdf TYPENAME 'TTF-FILE' FILE-PREFIX"
78
echo -e "\n Example: ttf2bdf 'courier prime cp1252' 'Courier Prime.ttf' courier-prime-cp1252\n"
89
else
910
for x in 7 10 12 14 16 18 20 24 30 35; do
10-
otf2bdf -t "$1" -p $x "$2" -m $MAPFILE -o $3-${x}.bdf ;
11+
if [ -z $4 ]; then
12+
otf2bdf -t "$1" -p $x "$2" -m $MAPFILE -o $3-${x}.bdf -w $4;
13+
else
14+
otf2bdf -t "$1" -p $x "$2" -m $MAPFILE -o $3-${x}.bdf
15+
fi
1116
done
1217
#cd ~/fonts
1318
mkfontscale .

0 commit comments

Comments
 (0)