summaryrefslogtreecommitdiffstats
path: root/TOOLS/gen-osd-font.sh
blob: 6838692c4fc0e21dff6ec87bb403d6291202988d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# This script is expected to be called as TOOLS/gen-osd-font.sh (it will access
# TOOLS/mpv-osd-symbols.sfdir), and it will write sub/osd_font.otf.

# Needs fontforge with python scripting

fontforge -lang=py -c 'f=open(argv[1]); f.generate(argv[2])' \
    TOOLS/mpv-osd-symbols.sfdir sub/osd_font.otf