1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

Add script to generate otf from sfdir using fontforge

Uses python scripting on fontforge since native scripting is considered
legacy and even Ubuntu Trusty seems to have python scripting.
This commit is contained in:
Ricardo Constantino 2017-04-20 16:08:33 +01:00
parent 1e4d3a2440
commit 51518ddcf6
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531

9
TOOLS/gen-osd-font.sh Executable file
View File

@ -0,0 +1,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