ThaUnknown / miru

Bittorrent streaming software for cats. Stream anime torrents, real-time with no waiting for downloads.
https://miru.watch
GNU General Public License v3.0
2.53k stars 141 forks source link

[Bug]: Box at the end of the subtitle lines #356

Closed s9991s closed 11 months ago

s9991s commented 1 year ago

Preflight checklist

What app version are you using?

v4.4.14

What operating system version are you using?

Windows

Expected Behavior

Subtitles with 2 lines to display without a box at the end of the first line

Actual Behavior

On certain torrents (for example view/1728103), when there is a subtitle with 2 lines there is a box at the end of the first line. If I manually download the torrent and play it in mpv, this doesn't happen. I attached a screenshot with miru on the left and mpv on the right. I've tried changing my default subtitle font and it didn't help. Maybe the box is something to do with how \n is handled, idk.

Screenshots

box

ThaUnknown commented 1 year ago

image can't reproduce on provided torrent

s9991s commented 1 year ago

It seems like it only happens if the font isn't set to default. To fix it I had to restore default settings so that the default subtitle font menu turned blank and then restart miru, and then the box stopped appearing (sidenote: if you reset the settings and the font menu turns blank, if you click on another tab in settings and then click back on the player tab then instead of the font being blank it displays whatever the first font is alphabetically, even though it isn't actually set to that). If I then change the default subtitle font to something else (I've tried Arial, Trebuchet MS, Agency FB) and restart miru, the box comes back.

ThaUnknown commented 1 year ago

ah, okay, so it's likely because there's some invisible char there at the end of the line, which Miru's built-in default font handles, but the custom fonts from your OS don't.

this is defo the subber's fault, as they didn't include a font in the release, and they added some shit ghost characters

Realistically I don't think I can fix this? I might consider removing the default fonts option as it seems to cause a lot of issues for little benefits....

ThaUnknown commented 11 months ago

sorry this took a while x)

spotted like 3 other bugs thanks to this report