Files
Velix-MPV-Core/TOOLS/mpv-osd-symbols.sfdir
Kacper Michajłow c865008e65 mpv-osd-symbols: center fluent icons only vertically
Makes it nicer for speaker icon to not move around on different volume
levels. Also remove scaling, it was not needed.

This required to rewrite the exclamation mark drawing code, made it look
similar to old icon now.
2026-04-16 19:03:47 +02:00
..
…

Steps to add new icons:

  • Install FontForge
  • 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