From 118ef75c279c9e38dd9ae2cde84c9e34b81a817b Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 28 Dec 2024 22:37:19 +0100 Subject: [PATCH] TOOLS/mpv-osd-symbols.sfdir: document how to add icons --- TOOLS/mpv-osd-symbols.sfdir/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 TOOLS/mpv-osd-symbols.sfdir/README.md diff --git a/TOOLS/mpv-osd-symbols.sfdir/README.md b/TOOLS/mpv-osd-symbols.sfdir/README.md new file mode 100644 index 0000000000..2186070403 --- /dev/null +++ b/TOOLS/mpv-osd-symbols.sfdir/README.md @@ -0,0 +1,16 @@ +Steps to add new icons: + +- Install [FontForge](https://fontforge.org/en-US/) +- Load a freely licensed font and mpv's glyph directory, for example: + `fontforge Symbola.ttf TOOLS/mpv-osd-symbols.sfdir` +- Check the Unicode hex value of the desired character (`g-a` in vim) +- Scroll until that value in the font window and click it +- Copy the selected glyph (Ctrl+c) +- Focus the window with TOOLS/mpv-osd-symbols.sfdir +- Click an unused character slot +- Paste the glyph (Ctrl+v) +- Save (Ctrl+s) +- Edit the numbers in the glyph file to match the size and position of adjacent + icons (TODO: find a better way) +- Run `sh TOOLS/gen-osd-font.sh` +- Add the icon to osc.lua following the instructions there