diff options
author | Philip Langdale <philipl@overt.org> | 2019-12-10 14:57:13 -0800 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2019-12-11 13:53:10 -0800 |
commit | db3754d8d6f93e37edf4238dc1b9b0de62963b47 (patch) | |
tree | f30f25ee40d3ac92cdb5b42f1332e1c3f20c1178 /TOOLS/mpv-osd-symbols.sfdir/uniE115.glyph | |
parent | 59cdfe50b261e06bdf04d2f7e2e18f6c19cbb26d (diff) | |
download | mpv-db3754d8d6f93e37edf4238dc1b9b0de62963b47.tar.bz2 mpv-db3754d8d6f93e37edf4238dc1b9b0de62963b47.tar.xz |
osc: use custom symbols for window controls
I was recently informed that unicode has official symbols for
window controls, and I put together a change to use them, which
worked, as long as a suitable font was installed. However, it's
not that hard to get a normal system that lacks an appropriate
font, and libass wants to print warnings if the symbols aren't
in the default font, which will almost always be true.
So, I gave up and added the symbols to the custom osd font that
we already have. This ensures they are always available, and
that they are aligned consistently on all platforms.
I took the symbols from the `symbola` font, as this has a suitable
licence and the symbols look nice enough.
Symbola Licence:
Fonts are free for any use; they may be opened, edited,
modified, regenerated, packaged and redistributed.
Finally, as we now have access to an un-maximize symbol, I added
logic to use it when the window is maximized.
Diffstat (limited to 'TOOLS/mpv-osd-symbols.sfdir/uniE115.glyph')
-rw-r--r-- | TOOLS/mpv-osd-symbols.sfdir/uniE115.glyph | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/TOOLS/mpv-osd-symbols.sfdir/uniE115.glyph b/TOOLS/mpv-osd-symbols.sfdir/uniE115.glyph new file mode 100644 index 0000000000..10c11958d7 --- /dev/null +++ b/TOOLS/mpv-osd-symbols.sfdir/uniE115.glyph @@ -0,0 +1,27 @@ +StartChar: uniE115 +Encoding: 57621 57621 33 +Width: 844 +VWidth: 1112 +Flags: HW +LayerCount: 2 +Fore +SplineSet +671 40 m 1 + 575 40 l 1 + 335 277 l 1 + 98 40 l 1 + -1 40 l 1 + -1 136 l 1 + 236 376 l 1 + -1 613 l 1 + -1 712 l 1 + 98 712 l 1 + 335 475 l 1 + 575 712 l 1 + 671 712 l 1 + 671 613 l 1 + 434 376 l 1 + 671 139 l 1 + 671 40 l 1 +EndSplineSet +EndChar |