mirror of https://github.com/mpv-player/mpv
8c3a7da619
The current OSD font size is excessively large, causing most messages—except for very short ones to overflow horizontally. I conducted testing across multiple devices of varying screen sizes and under different scenarios. The adjusted font size strikes a good balance for readability on non-high-DPI displays, while high-DPI displays should utilize DPI scaling as needed. Additionally, I compared the font sizes of subtitles and UI elements across various VOD platforms, which generally use smaller font in most cases. The current sub font size was significantly larger than even PGS subtitles, which are quite large on their own. Now, they are comparable. The subtitle font size was chosen based on recommendations from the BBC Subtitle Guidelines. It is set to 8% of the video height with a recommended scaling factor of 0.67. Therefore, at 720p (the reference size for mpv font scaling), the calculation is 8% * 0.67 * 720 = 38.592, rounded down to 38. This value falls within the recommended scaling range of x0.5–x1 for desktop PCs/Laptops and TVs (32"–42"). For more information, see https://www.bbc.co.uk/accessibility/forproducts/guides/subtitles/#Presentation-font-size. OSD font size is smaller than font as those elements shouldn't be distractful and only noticable when the user wants to look at them. Outline size is set to 5.5% of font size. |
||
---|---|---|
.. | ||
javascript | ||
lua | ||
audio.c | ||
client.c | ||
client.h | ||
command.c | ||
command.h | ||
configfiles.c | ||
core.h | ||
external_files.c | ||
external_files.h | ||
javascript.c | ||
loadfile.c | ||
lua.c | ||
main.c | ||
misc.c | ||
osd.c | ||
playloop.c | ||
screenshot.c | ||
screenshot.h | ||
scripting.c | ||
sub.c | ||
video.c |