Closed CoffeeStraw closed 3 years ago
I'm soo tempted to write my own font loading library for windows...
Anyway, this is likely due to how Aegisub overrides libass behavior for vsfilter compatibility. To be specific, the difference between GDI (Aegisub Override) vs DirectWrite (libass native).
I'll look into it but at this point, I kinda half gave up trying.
Kinda happy you fastly located the issue though! Hope you can get that fixed, since I would be happy to use an updated version of Aegisub.
This looks like the actual problem is Aegisub libass not finding the font in the first place. 9210 would fall back to Arial, whereas 9211 simply renders nothing.
All of the following screenshots are taken from 9211 (v2), using libass as a renderer. Note especially the 1
and 3
glyphs—the font shown in the original issue is Arial, not Migu 1P.
Your explanation seems reasonable. I've downloaded again 9211, but I'm not getting the same results you're getting (Migu 1P rendering). So they're not from 9211 right?
UPDATE: Actually, it seems now to work with Migu 1P after re-installing the font (mystery), but I'm still having the same issue with Cambria Math and MS Gothic (as well as a lot of other fonts).
I had some problems getting Migu 1P to work. FontBase would not detect it at all, but it worked after installing the font globally in Windows.
I can reproduce Cambria Math failing to render in 9211, though. Renders fine using CSRI/vsfilter_textsub
in 9211, as well as using libass in 9210.
Just thought to test with an old(ish) build of TypesettingTools/Aegisub (r8992). It has the same behaviour as 9211 (renders nothing for Cambria Math).
I guess a current workaround would be to use CSRI/vsfilter_textsub
instead of libass when working with affected fonts.
Cambria Math failing to render in 9211 might be due to GDI not detecting ttc files (or to that effect).
I might try fontconfig for libass, seeing how there is a vcpkg package for it...
I had some problems getting Migu 1P to work. FontBase would not detect it at all, but it worked after installing the font globally in Windows.
That must be what I've done unconsciously (since I've done it quickly)! It is still quite strange why does it happens... Could it be due to some recent Windows' update?
I had some problems getting Migu 1P to work. FontBase would not detect it at all, but it worked after installing the font globally in Windows.
That must be what I've done unconsciously (since I've done it quickly)! It is still quite strange why does it happens... Could it be due to some recent Windows' update?
A windows update should not affect Aegisub (in general)
Not sure if the issue is related but I decided to post here instead of creating a new issue. After updating from 9210 to 9212 (also checked in 9211 v2, began there), my fonts stopped rendering correctly too. The font in question is Jaldi, more specifically its Bold variant.
9210
9211 v2
From my experiments, it's probably related to the fact that the library loads font weights incorrectly - if I use FFmpeg to burn in the subs, the resulting video has the correct font (although if I use PotPlayer and include the .ass file, the player also renders incorrect fonts). Funny enough, deleting Regular and leaving only Bold style for the font fixes issue in 9211 and 9212 (well, because there is nothing to render other than that one style).
Should be resolved with Release 9213
Hi, I've recently discovered your builds, thank you for your work!
It seems like there is a regression in the libass used in 9211 release, as it does not render some fonts anymore, while in 9210 everything seems to work just fine. As an example, consider the Migu 1P font, which you can freely download, but other fonts like Cambria Math or MS Gothic suffer from the same issue.
I'm also leaving some screens, thank you in advance!
9211
9210