mpv/DOCS/man
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
..
af.rst DOCS/man: improve explanation on how to shift notes with --pitch 2024-08-09 14:22:23 +00:00
ao.rst DOCS/man: note that default autoprobe order is unrealiable 2024-05-20 18:07:38 +02:00
changes.rst DOCS: document the new way to handle interface changes 2024-03-20 22:38:56 +00:00
console.rst console.lua: default to a proportional font for select 2024-10-28 23:30:34 +01:00
encode.rst DOCS/man: replace legacy option syntax usage 2024-05-24 17:57:43 +00:00
input.rst DOCS/man/input: input-bindings can change at runtime 2024-10-21 15:13:39 +00:00
ipc.rst DOCS/man: add more --input-ipc-client references 2024-07-29 21:00:48 +02:00
javascript.rst scripting: add mp.input.select() 2024-05-07 22:34:22 +02:00
libmpv.rst cplugin: allow loading mpv_* symbols dynamically 2023-09-20 02:16:45 +00:00
lua.rst DOCS/man/lua: correct example syntax 2024-10-29 12:26:04 +02:00
mpv.rst input.conf: bind ? to show key bindings 2024-10-14 20:33:27 +02:00
options.rst options: add option to control OSD bar marker style 2024-10-26 20:02:04 +02:00
osc.rst DOCS/man/osc: remove non-existent options 2024-10-29 00:45:59 +01:00
stats.rst stats.lua: calculate sizes like --osd-*-size options 2024-10-29 20:35:35 +01:00
vf.rst docs: remove stray newlines 2024-10-06 21:51:59 +02:00
vo.rst DOCS/man: note that default autoprobe order is unrealiable 2024-05-20 18:07:38 +02:00