mpv/DOCS/interface-changes
Guido Cella 3986f34e2a stats.lua: calculate sizes like --osd-*-size options
Currently --script-opt=stats-font_size=n is much bigger than
--osd-font-size=n, which can confuse users, so calculate sizes the same
way.

The \fs value to replicate --osd-font-size is
${osd-font-size} * 288 / 720 with --osd-scale-by-window, and
\fs${osd-font-size} * 288 / ${osd-height}
with --osd-scale-by-window=no. This is because
sub/osd_libass.c:update_playres() sets
track->PlayResY = ass->res_y ? ass->res_y : MP_ASS_FONT_PLAYRESY,
where MP_ASS_FONT_PLAYRESY is 288.

This also works with persistent_overlay=yes.

{\fscx100}{\fscy100} would also replicate --osd-font-size with show-text
and with osd-verlay + --osd-scale-by-window, but not with osd-overlay +
--osd-scale-by-window=no.

The default sizes are multiplied by 720/288 = 2.5 to keep them the same
as before.
2024-10-29 20:35:35 +01:00
..
console-scale-with-window.rst console.lua: add scale_with_window script-opt 2024-10-27 21:07:37 +01:00
display-page-toggle.txt stats.lua: allow keybindings to toggle the display of a specific page 2024-10-04 21:13:29 +03:00
example.txt
geometry-behavior.txt win_state: move window centering to vo_calc_window_geometry 2024-10-05 18:40:11 +00:00
load-console.txt options: rename --load-osd-console to --load-console 2024-10-17 23:57:24 +02:00
nvidia-true-hdr.txt vf_d3d11vpp: add NVIDIA RTX Video HDR support 2024-09-30 02:51:21 +02:00
osc-buttons.txt osc.lua: make mouse bindings customizable 2024-10-22 22:44:21 +02:00
osd-bar-marker.txt options: add option to control OSD bar marker style 2024-10-26 20:02:04 +02:00
script-opt.txt options: add --script-opt alias for --script-opts-append 2024-10-22 18:54:16 +02:00
stats-sizes.rst stats.lua: calculate sizes like --osd-*-size options 2024-10-29 20:35:35 +01:00
stats-term-clip.txt stats.lua: remove term_height_limit script-opt 2024-10-21 20:07:01 +02:00
term-clip-cc.txt msg: allow to truncate the message to terminal width 2024-10-11 15:16:33 +02:00
video-frame-info-timecode.txt command: add video-frame-info/{gop,smpte,estimated-smpte}-timecode 2024-09-24 19:47:42 +02:00
ytdl_hook-include.txt ytdl_hook.lua: add include script-opt of URLs to try with ytdl first 2024-10-09 01:08:31 +02:00