mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Some fonts defined in ASS sub files are not recognized on Windows

Open hkenneth opened this issue 12 years ago • 3 comments

I have following fonts defined in my ASS files. It is not recognized by mpv. Instead it uses the default system font.

[V4+ Styles] Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding Style: Chinese,Hiragino Sans GB W6,65,&H00FFFFFF,&H0000FFFF,&H17000000,&HAC000000,0,0,0,0,100,100,0,0,0,2,3,2,20,20,65,1 Style: Japanese,Hiragino Sans GB W6,45,&H00FFFFFF,&H0000FFFF,&H0E000000,&HA2000000,0,0,0,0,100,100,0,0,1,2,3,2,20,20,65,1

mpv on Linux and OSX does not have this issue. Other players on Windows also recognize the font correctly.

PS: Hiragino Sans GB is a Chinese/Japanese font family shipped with OSX

hkenneth avatar Jul 02 '14 16:07 hkenneth

At least lachs0r's windows builds ignore the system fonts to avoid wait times when scanning them.

ghost avatar Jul 02 '14 17:07 ghost

I don't know the technical details about how mplayer/mpv implemented this but why it needs to scan system fonts while most other players don't?

hkenneth avatar Jul 02 '14 18:07 hkenneth

Anything that uses libass has this problem. There's development in libass that may or may not fix this, in an unknown timeframe.

ghost avatar Jul 02 '14 20:07 ghost