mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
db3754d8d6
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.
78 lines
1.6 KiB
XML
78 lines
1.6 KiB
XML
SplineFontDB: 3.0
|
|
FontName: mpv-osd-symbols-Regular
|
|
FullName: mpv-osd-symbols Regular
|
|
FamilyName: mpv-osd-symbols
|
|
Weight: Normal
|
|
Copyright: This is generated file.
|
|
Version: 001.000
|
|
ItalicAngle: 0
|
|
UnderlinePosition: -133
|
|
UnderlineWidth: 50
|
|
Ascent: 800
|
|
Descent: 200
|
|
InvalidEm: 0
|
|
sfntRevision: 0x00010000
|
|
LayerCount: 2
|
|
Layer: 0 0 "Back" 1
|
|
Layer: 1 0 "Fore" 0
|
|
XUID: [1021 879 -1597228462 15927]
|
|
StyleMap: 0x0040
|
|
FSType: 8
|
|
OS2Version: 3
|
|
OS2_WeightWidthSlopeOnly: 0
|
|
OS2_UseTypoMetrics: 0
|
|
CreationTime: 1408646554
|
|
ModificationTime: 1576096543
|
|
PfmFamily: 81
|
|
TTFWeight: 400
|
|
TTFWidth: 5
|
|
LineGap: 0
|
|
VLineGap: 0
|
|
Panose: 0 0 5 0 0 0 0 0 0 0
|
|
OS2TypoAscent: 800
|
|
OS2TypoAOffset: 0
|
|
OS2TypoDescent: -200
|
|
OS2TypoDOffset: 0
|
|
OS2TypoLinegap: 90
|
|
OS2WinAscent: 1000
|
|
OS2WinAOffset: 0
|
|
OS2WinDescent: 200
|
|
OS2WinDOffset: 0
|
|
HheadAscent: 1000
|
|
HheadAOffset: 0
|
|
HheadDescent: -200
|
|
HheadDOffset: 0
|
|
OS2SubXSize: 650
|
|
OS2SubYSize: 600
|
|
OS2SubXOff: 0
|
|
OS2SubYOff: 75
|
|
OS2SupXSize: 650
|
|
OS2SupYSize: 600
|
|
OS2SupXOff: 0
|
|
OS2SupYOff: 350
|
|
OS2StrikeYSize: 50
|
|
OS2StrikeYPos: 220
|
|
OS2Vendor: 'PfEd'
|
|
OS2CodePages: 00000001.00000000
|
|
OS2UnicodeRanges: 00000000.00000000.00000000.00000000
|
|
DEI: 91125
|
|
LangName: 1033 "" "" "Regular" "1.000;PfEd;mpv-osd-symbols-Regular" "mpv-osd-symbols" "Version 1.000;PS 001.000;hotconv 1.0.70;makeotf.lib2.5.58329"
|
|
Encoding: UnicodeBmp
|
|
UnicodeInterp: none
|
|
NameList: AGL For New Fonts
|
|
DisplaySize: -72
|
|
AntiAlias: 1
|
|
FitToEm: 0
|
|
WinInfo: 57600 8 2
|
|
BeginPrivate: 8
|
|
BlueValues 31 [-10 0 640 650 720 730 800 810]
|
|
BlueScale 5 0.037
|
|
BlueShift 1 0
|
|
BlueFuzz 1 0
|
|
StdHW 4 [65]
|
|
StdVW 4 [65]
|
|
StemSnapH 8 [65 800]
|
|
StemSnapV 8 [65 150]
|
|
EndPrivate
|
|
EndSplineFont
|