Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
molarmanful committed Feb 21, 2024
1 parent 5e0f731 commit 5c907d6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
python-version: "3.10"
- name: fontforge
run: |
add-apt-repository ppa:fontforge/fontforge && \
apt-get update && \
apt-get install fontforge
sudo add-apt-repository ppa:fontforge/fontforge && \
sudo apt-get update && \
sudo apt-get install fontforge
- name: build
env:
REF: ${{ github.ref_name }}
Expand Down
16 changes: 16 additions & 0 deletions scripts/fix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from sys import argv
import os
import fontforge

d = os.path.dirname(os.path.realpath(__file__))
if len(argv) > 3:
f = fontforge.open(os.path.join(d, f"../out/{argv[1]}.sfd"))
f.importBitmaps(os.path.join(d, f"../out/{argv[1]}.bdf"))
else:
f = fontforge.open(os.path.join(d, f"../out/{argv[1]}.{argv[2]}"))
f.fontname = argv[1]
f.fullname = argv[1]
f.encoding = "UnicodeFull"
f.os2_panose = (0, 0, 0, 9, 0, 0, 0, 0, 0, 0)
f.save(os.path.join(d, f"../out/{argv[1]}.sfd"))
f.generate(os.path.join(d, f"../out/{argv[1]}.{argv[2]}"))

0 comments on commit 5c907d6

Please sign in to comment.