Kodi Community Forum

Full Version: Support for ASS format subtitles with bundled fonts?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried playing a movie with some ASS-format subtitles that contained a bundled font (Avenir).

It plays as expected with VLC, but the subs don't appear when I try playing it with Kodi.

I tried removing the bundled subs from the ASS file, and just specified the default  Arial font. After that, it works fine.

Question: is there support for bundled fonts in Kodi... or...?

I'm using Kodi 20.0-ALPHA1 (19.90.101) Git:20210427-58df0ff1a5, on Ubuntu 18.04.5 LTS, kernel: Linux x86 64-bit version 4.15.0-142-generic. All packages updated.

Thanks!
This sounds more like a generic request to me, thus I moved it to the OS independent section.

You set the thread prefix to v19, but say you use v20... Oo
There should be a v20 prefix as well.

AFAIK, Kodi uses its own font(s). Bundled fonts are not (yet?) used.
Fonts can be added to Kodi.
Thanks for your message. I fixed the v20 tag.

I'll investigate adding fonts, then.

Would be cool if there were support for bundled fonts.
Should be supported, at least it is implemented in the code. can you share the sample file (the ass file with the bundled font) so we can investigate?
(2021-04-29, 11:09)enen92 Wrote: [ -> ]Should be supported, at least it is implemented in the code. can you share the sample file (the ass file with the bundled font) so we can investigate?

Ahh, I didn't save the file. Let me re-create it with the bundled font, verify that it doesn't work, and then I'll up it. It may take a day.

Thanks!
It seems this might actually be a bug in libass fixed quite recently: https://github.com/libass/libass/commit/...4e9a76a4d7
https://github.com/libass/libass/issues/266

It seems it will only be fixed when libass 15.1 is released and kodi moves to a new version
Ah, I see. Thanks for drawing my attention to this.

I tried dpkg -l | grep libass, and it looks like libass 1:0.14.0-1 is currently installed on my machine.

So, I guess I'll just wait.

Next version of Kodi means... v21, or... ?
Actually libass 0.15.1 was released this weekend, a pr for bumping the version is already in the queue for v20: https://github.com/xbmc/xbmc/pull/19672

Since you're running Linux, Kodi uses system libass so as long as you update libass on the host you can use that without any change/update to Kodi.