Skip to content

Building BDF fonts

Building BDF fonts #7

Workflow file for this run

name: Building BDF fonts
on:
workflow_dispatch:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- name: install font toolsmake bfs binary
run: |
sudo apt install otf2bdf xfonts-utils wget
- name: download fonts
run: |
mkdir bdf-fonts
cd bdf-fonts
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/courier-prime/courier-prime.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/courier-prime/courier-prime-bold.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/courier-prime/LICENSE.txt -O License-courier-prime.txt
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/chivo.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/chivo-bold.ttf
wget https://github.com/braver/programmingfonts/raw/gh-pages/fonts/resources/chivo/OFL.txt -O chivo-OFL.txt
cd ..
ls
pwd
- name: creating bdf files
run: |
pwd
cd bdf-fonts
ls ../fonts
bash ../fonts/ttf2bdf.sh "courier prime" courier-prime.ttf "courier-prime-medium"
bash ../fonts/ttf2bdf.sh "courier prime" courier-prime-bold.ttf "courier-prime-bold"
bash ../fonts/ttf2bdf.sh "chivo mono" chivo.ttf "chivo-mono-medium"
bash ../fonts/ttf2bdf.sh "chivo mono" chivo-bold.ttf "chivo-mono-bold"
cd ..
- name: Upload BDF fonts
uses: actions/upload-artifact@v4
with:
name: bdf-fonts
path: bdf-fonts