mpv/player
Kacper Michajłow 8c3a7da619 sub/osd/console: adjust font sizes
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.
2024-11-18 09:50:22 +01:00
..
javascript defaults.js: send the right number of arguments to input.get callbacks 2024-11-14 11:09:08 +01:00
lua sub/osd/console: adjust font sizes 2024-11-18 09:50:22 +01:00
audio.c audio: add pitch-shifting feature 2024-08-07 22:56:17 +02:00
client.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
client.h
command.c loadfile: move mp_format_track_metadata to misc.c 2024-11-16 16:59:11 +01:00
command.h loadfile: move mp_format_track_metadata to misc.c 2024-11-16 16:59:11 +01:00
configfiles.c player: don't load encoding mode profile twice 2024-10-31 16:43:25 +01:00
core.h loadfile: move mp_format_track_metadata to misc.c 2024-11-16 16:59:11 +01:00
external_files.c player/external_files: fix null deref when cover-art-whitelist is empty 2024-09-29 22:56:40 +02:00
external_files.h misc/language: move mp_guess_lang_from_filename() here 2024-05-10 01:22:31 +02:00
javascript.c player/javascript: disable stream error logging 2024-10-22 03:16:51 +03:00
loadfile.c player/loadfile: limit playlist size to 10 for fuzzing 2024-11-02 01:40:41 +01:00
lua.c lua: remove unused #define mp_lua_len 2024-09-26 16:45:08 +02:00
main.c player: don't load encoding mode profile twice 2024-10-31 16:43:25 +01:00
misc.c loadfile: move mp_format_track_metadata to misc.c 2024-11-16 16:59:11 +01:00
osd.c player/osd: don't add newlines when message would be empty anyway 2024-10-21 20:06:48 +02:00
playloop.c player: move a redraw_subs edgecase to loadfile 2024-10-16 02:26:06 +00:00
screenshot.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
screenshot.h
scripting.c player/scripting: remove outdated comment about posix_spawn 2024-07-29 21:00:48 +02:00
sub.c player: make redraw_sub flag work on a per track basis 2024-10-16 02:26:06 +00:00
video.c player/audio: invert audio_started boolean 2024-08-01 11:45:13 +00:00