-
Notifications
You must be signed in to change notification settings - Fork 208
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
xy-SubFilter finds non-attached regular font-variant, libass the attached bold variant #509
Comments
The linked mkv-file only has the bold variant of
And some properties of
Since the linked mkv doesn't bundle the version the subs actually try to sue, I suspect this is just a case of a borked mkv and a missing font varaint, but to be sure: Please provide logs for mpc-be using normal xy-SubFilter, and additionally a log for mpv with libass would also be nice.
|
How to do it?
Yes
No, but I have lot of fonts instaled |
I think this may just be the DirectWrite font provider regression in 0.15.1? It’s odd that the two libass screenshots are different from each other though. |
There is no such thing (the logs). Or is there? |
Hang on, I got it: Whenever libass needs a font, it searches through already-known fonts. If it finds a match, it uses that match. If not, it asks the system for more fonts. In this case (with the new DirectWrite font provider, but equally well with the Core Text font provider on macOS), the already-known fonts are the fonts attached to the MKV, as system fonts have not been queried yet. There’s a family name match, so libass uses that font. If we want to treat this as a regression (and longstanding macOS bug), then presumably we want to make it call |
idk, maybe something is with aspect ratio
Trying to generate something in mpc-hc but no result |
Ah yes, I remember! I was thinking that |
The problem maybe video’s DAR cause. In addition, libass is slightly different from VSFilter when I use this in Aegisub to render the subtitle, but I think it’s nothing to do with the issue. |
Similar in Kainote 0.9.8.1330 |
DAR can cause the stretchedness difference between mpv and XySubFilter_with_libass, but that’s not what this issue is about. The mpv screenshot is correct here, and the XySubFilter_with_libass one wrong. Seems like an issue in XySubFilter_with_libass. For comparison’s sake, similarly stretched images can be obtained from mpv by setting (The XySubFilter screenshot is correctly stretched, too, but uses a different font.) Either way, that’s not what this GitHub issue report is mainly about; it’s about using the wrong font. Unless that’s what OP actually meant to report? |
Yes, It's strange that there are two different font with the same .ass file |
I misunderstood the issue. |
To be fair, that did diagnose a real issue with XySubFilter_with_libass, so that’s useful too :-) Its GitHub repo has issues disabled, so, uh, @Masaiki, it needs to call |
Well, i will try to handle it. |
@MatiasMovie You're currently using the DIrectWrite font provider, but apparently your binary is built with support for fontconfig as well. To help us determine which font-providers are affect by this, could you run mpv with fontconfig and logs? So you would invoke mpv like this (replacing
If that's the first time you're ever using fontconfig on Windows you may experience a freeze/lag at the beginning while fontconfig is initialising its cache, please just wait a bit if that happens. You don't need to worry about the mpc-be logs, I've since been told they don't contain font-related stuff anyway. |
|
the problem occured on lines 650 to 667 of file https://github.com/libass/libass/blob/b9f34688f6ef1988136ba5e90a91ae8ac9b8a55f/libass/ass_fontselect.c |
Yes. See #509 (comment) above. |
Thanks for testing with fontconfig, MatiasMovie. So it's just like astiob suspected: CoreText and DirectWrite are affected, fontconfig is not. |
Ok, Thanks for the detailed explanation @TheOneric |
After some discussion on IRC, it seems likely that we may keep the new behaviour as an intentional feature and adjust the Fontconfig backend to match, because it’s apparently common for fansub authors (typesetters) to have only a subset of a font family installed during authoring, which is then attached to the released MKV file and should be preferred during playback even if the end user does have more fonts installed. |
Players: mpv, mpc-be (with madvr)
File: https://mega.nz/file/D9JSQCSB#AsAPetej_kUJ5RA-7uyMyzBZeaZNTw6VMlRSPVKeuFs
Screenshots:
![image](https://user-images.githubusercontent.com/24187109/117941203-26630300-b30a-11eb-94fc-ffa706000f7b.png)
mpv (libass, probably 15.1)
XYsubfilter (https://github.com/pinterf/xy-VSFilter/releases)
![image](https://user-images.githubusercontent.com/24187109/117941341-4b577600-b30a-11eb-91e4-fd416a127cb3.png)
XYsubfilter with libass [probably 15.1] (https://github.com/Masaiki/xy-VSFilter/releases/tag/xy_sub_filter_with_libass)
![image](https://user-images.githubusercontent.com/24187109/117941653-9e312d80-b30a-11eb-9067-c77eab888a19.png)
The text was updated successfully, but these errors were encountered: