iina / iina

The modern video player for macOS.
https://iina.io
GNU General Public License v3.0
37.05k stars 2.53k forks source link

[BUG] ass subtitle font displays incorrectly, recompiling of libass is needed #2037

Open CafeAuLait-CC opened 5 years ago

CafeAuLait-CC commented 5 years ago

System and IINA version:

Both IINA and mpv are not displaying the ass subtitle fonts correctly. The problem and solutions are as described in this page shared by ZRStea, please have a look.

According to this author, libass started using CoreText in macOS as the font selection backends from version 0.13.0. Unfortunately, CoreText use the font's PostScript Name to selection fonts, instead of the font's full name, which is widely used in the ass subtitle file. For example, a full name could be "方正准圆_GBK", and its corresponding postscript name is "FZY3K--GBK1-0".

lhc70000 commented 5 years ago

@HarukaMa @inflation Do you think there's any problem with this?

inflation commented 5 years ago

Since I'm using an English system, all the CJK fonts show its names in English, and it works fine with either family, full or postscript names. So I suspect that CoreText only picks English(or MacRoman, to be more general) names instead of the localized ones.

It could be a little bit annoying, although I'm doing conversion anyway for maximum compatibility.