mpv/DOCS
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
..
interface-changes stats.lua: calculate sizes like --osd-*-size options 2024-10-29 20:35:35 +01:00
man stats.lua: calculate sizes like --osd-*-size options 2024-10-29 20:35:35 +01:00
client-api-changes.rst docs: remove stray newlines 2024-10-06 21:51:59 +02:00
compatibility.rst DOCS/compatibility.rst: add requirement when changing default values 2024-05-20 18:07:38 +02:00
compile-windows.md ci/win32: use upstream meson 2024-10-21 04:11:25 +02:00
contribute.md DOCS/contribute.md: fix a typo 2024-10-29 20:25:47 +01:00
edl-mpv.rst edl: add a way to add tags 2021-05-11 22:18:40 +02:00
encoding.rst DOCS/encoding: remove the legacy option syntax 2022-07-07 21:12:57 -04:00
interface-changes.rst Release 0.39.0 2024-09-23 19:36:41 +02:00
mplayer-changes.rst DOCS: make mentions of macOS consistent 2024-02-21 20:46:53 +01:00
release-policy.md VERSION: rename to MPV_VERSION to avoid standard library header conflict 2024-07-29 21:38:19 +02:00
tech-overview.txt DOCS/tech-overview.txt: add builtin.conf to etc/ description 2024-03-11 21:01:01 +01:00