-
Notifications
You must be signed in to change notification settings - Fork 223
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
Fontconfig font provider may use non-Windows names #315
Comments
Just wanted chime in on this that I noticed a similar problem in Handbrake myself, under HandBrake/HandBrake#1954. Multiple files that I've passed through Handbrake have come back with the incorrect font once burned in (softsubs are fine), and I've noticed the same problem with VLC as well. I know how to play around in ASS files, so I've been picking away at options to try and figure out what the cause is. For my test case, the ASS file is using the font "Bahnschrift SemiBold Condensed", but VLC and Handbrake (with burn-in) keep rendering it in its basic form, "Bahnschrift". I tried a bunch of stuff inside the ASS files to find the triggers, including: Here are log snips and screencaps from the respective processes. Broken original attempt (Bahnschrift) (as you can see, it's dropping the variations for some reason) Second attempt w/ new font (OffensiveBold)
I can keep on plugging away at this to see if I can nail it down, I've seen similar issues come up from a bunch of different fonts, but others are just fine. Let me know if you need any more info or testing, I'd be happy to help quash this problem any way I can. |
Not sure if related to your issues, but:
If you're testing font selection, especially with Variants |
I was now able to obtain a copy of the SVN Student font (no license info though).
Also both have their "UniqueID" set to That being said, e.g. pluma does allow me to select the proper UTM Ong Do Gia and even SVN Student, so it should be possible to have a workaround for these broken fonts. |
I'm having the same issue as @secondsabre I'm using Aegisub to create subs with the font "Bahnschrift Condensed", and while Aegisub shows the font properly, when I open the subs in VLC, they change to the basic "Bahnschrift" font, thus distorting all the text. In my case, I'm using the font for masking kanji signs, so it especially looks bad when it gets distorted. Any possible solutions? |
There are many different Bahnschrift fonts. Which one are you using ? The orignal issue, as reported in HandBrake, was a broken font, that claimed to be another font in its header – except for the MS-specific part. While it maybe might be a good idea for libass (unlike most other software) to check these headers for font selection in the interest of VSFilter compatibility – this really is problem with the font itself and should be fixed by the font author.
If it's a broken font, fix the font. |
When no system font provider is used, libass actually already uses the Windows platform name to select the inteded Unfortunately, enabling Fontconfig breaks this and instead of the attached font, the system’s copy of |
…ibass#315 Eager-loading font providers can provide more names, but if we get a match on one, we'll load the GDI data and repeat the check using that.
…ibass#315 Eager-loading font providers can provide more names, but if we get a match on one, we'll load the GDI data and repeat the check using that.
These aren't GDI-compatible. Fixes part of libass#386 and libass#315.
…ibass#315 Eager-loading font providers can provide more names, but if we get a match on one, we'll load the GDI data and repeat the check using that.
We have a user reporting incorrect font-selection that appears to have the required front on their system.
HandBrake/HandBrake#1615
fc-list | grep 'Ong Do Gia'
/usr/share/fonts/transcoder/utm-fonts/UTM Ong Do Gia.ttf: UTM Ong Do Gia:style=Regular
/usr/share/fonts/transcoder/unicode-fonts/UTM Ong Do Gia.ttf: UTM Ong Do Gia:style=Regular
Results:
[09:26:01] [ass] fontselect: (UTM Ong Do Gia, 700, 0) -> /usr/share/fonts/transcoder/svn-fonts/SVN-Student.ttf, 0, SVN-Student
[09:26:01] [ass] fontselect: (UTM Swiss Condensed, 700, 0) -> /usr/share/fonts/transcoder/unicode-fonts/UTM Swiss CondensedBold.ttf, 0, UTMSwissCondensed-Bold
First one was incorrect, second one was.
Utilising 0.14.0
I'm not convinced this is a bug, but more something funny about the source that's triggering the font choice to go the wrong way. Any suggestions would be appreciated.
The text was updated successfully, but these errors were encountered: