fix(core,player,app): styled subtitles keep their size and place unless restyled

mpv's default sub-ass-override, `scale`, hands an ASS track sub-scale,
and sub-pos reaches it under every mode but `no`. So with "Restyle
styled subtitles" off, the subtitle size and position settings still
resized and moved typeset dialogue and signs.

The override is now `yes` when restyling is off, which keeps sub-scale
off ASS. A styled track also ignores the style's position, and moves
only to stay clear of the player's controls. A frame from an ASS track
rendered with every other option changed now matches the untouched one
pixel for pixel. Plain (SRT) tracks still take the whole style.
This commit is contained in:
nvrl committed 2026-10-27 22:44:35 +01:00
1 parent 69d961d7b8
commit ffd6e959bb
6 files changed
+78 -29

No files matched your search

+5 -3
View File
@@ -86,7 +86,8 @@ The picture plays inside the app's window. Move the mouse to show the controls.
**Play now**, **Cancel** or **Watch till the end**.
- **Subtitles and audio** are chosen from the buttons at the bottom right. The app remembers your
choice for each show. The subtitle menu also has **Size** and **Position**, which are saved like
the ones in Settings, and **Delay**, which moves subtitles earlier or later for this file only.
the ones in Settings and change styled subtitles only when they are restyled, and **Delay**,
which moves subtitles earlier or later for this file only.
- **Speed** goes from 0.5× to 3×, and stays for the next episode.
### Keyboard
@@ -202,8 +203,9 @@ a video that is playing changes at once.
read on bright scenes.
- **Shadow** and **Blur**.
- **Restyle styled subtitles** (off). Plain subtitles (SRT) always take the whole style. Styled
subtitles (ASS) keep the look their makers gave them and take only the size and position,
unless this is on. Turned on, signs and songs can come out wrong.
subtitles (ASS) keep the look, size and place their makers gave them unless this is on; they
only move up while the player's controls are showing. Turned on, signs and songs can come out
wrong.
- **Reset** goes back to the default look.
**Storage**