Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Arbitrary" change in fonts? #15011

Open
6 tasks done
Darkmaster006 opened this issue Oct 7, 2024 · 2 comments
Open
6 tasks done

"Arbitrary" change in fonts? #15011

Darkmaster006 opened this issue Oct 7, 2024 · 2 comments
Labels

Comments

@Darkmaster006
Copy link

mpv Information

mpv v0.39.0-26-gc3d9243a Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Sep 29 2024 00:06:06
libplacebo version: v7.349.0 (v7.349.0-13-ga018ab0-dirty)
FFmpeg version: N-117251-g6ec6b0790
FFmpeg library versions:
   libavcodec      61.20.100
   libavdevice     61.4.100
   libavfilter     10.5.100
   libavformat     61.8.100
   libavutil       59.40.100
   libswresample   5.4.100
   libswscale      8.4.100

Other Information

- Windows version: Microsoft Windows [Versión 10.0.19045.4894]
- GPU model, driver and version: Intel(R) HD Graphics 920; NVIDIA GeForce 940MX.
- Source of mpv: https://github.com/shinchiro/mpv-winbuild-cmake/releases
- Introduced in version: -
https://images2.imgbox.com/a0/19/j3DrC9Od_o.png
https://images2.imgbox.com/c1/60/hVv6ukuW_o.png

Reproduction Steps

Reproducible with --no-config.
Reproduce a video with both Chinese (simplified), Chinese (traditional) and other languages subs, in srt.
The fonts for, in this case, Chinese, change arbitrarily.
The Long Ballad EP01 WEB-DL mkv-00 08 23 922-#1
The Long Ballad EP01 WEB-DL mkv-00 08 24 602-#1
mpv-shot0001
mpv-shot0004

Expected Behavior

For the font not to change arbitrarily.

Actual Behavior

The font changes arbitrarily, apparently happens when you switch between subs, sometimes.
I think I understand why this changes now: if the first (simplified) sub has a line where all characters are simplified (and, hence, change the font to the "simpler" one, then the font will display in all lines as intended, when you change back; if, then you change to traditional, and then change back to simplified, it seems then the "sturdier" traditional font remains for characters that are from the "simplified" but actually the same as the "traditional" version, while the actual simplified characters which have no equivalent in the traditional form display with the "simpler" font.

Log File

output.txt

Sample Files

https://www.mediafire.com/file/sfxun4sd2qwhok0/sample.zip/file

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@kasper93
Copy link
Contributor

kasper93 commented Oct 7, 2024

You need to install and use font that supports all the glyphs.

There are multiple

[sub/ass] Glyph 0x... not found, selecting one more font for (sans-serif, 400, 0)

what happens is that some glyphs are rendered with different font than others and as you notice they will look different and not connect with the rest.

@Darkmaster006
Copy link
Author

You need to install and use font that supports all the glyphs.

There are multiple

[sub/ass] Glyph 0x... not found, selecting one more font for (sans-serif, 400, 0)

what happens is that some glyphs are rendered with different font than others and as you notice they will look different and not connect with the rest.

Thank you, I will see if that fixes it, I will look through fonts and decide on a handful to install for Chinese. Is there any way to set a "preferred" Chinese font for simplified and traditional in MPV or how does it choose which one it uses by default? Maybe the one that Windows sets? I will look into it also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants