mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Complains about all WOFF files in font directories

Open forthrin opened this issue 4 months ago • 2 comments

System Information

mpv       2025-10-29 454d9eb
ffmpeg    2025-10-22 82c495fd1
System Version: macOS 26.0.1 (25A362)
Model Identifier: MacBookAir10,1

Reproduction Steps

$ cp *.woff *.woff2 ~/Library/Fonts/
$ printf "1\n00:00:00.000 --> 00:00:00.000\n" | mpv --config=no --sub-fonts-dir=~/Library/Fonts '/System/Library/Desktop Pictures/.wallpapers/Tahoe Day/Tahoe Day.mov' --sub-file=- 

Expected Behavior

No errors, since there is nothing wrong with the fonts and they are not explicitly required to play the video.

Actual Behavior

[sub/ass] Error opening memory font 'font.woff'
[sub/ass] Error opening memory font 'font.woff2'
(FLOOD)

mpv seems to open all font files in font directories. At first, this may seem uncalled for, but suspect necessary to obtain font names to match with user preferences.

The underlying issue might be that the FreeType formula in Homebrew is built without Brotli support, which is required to decode WOFF2 fonts.

Log File

N/A

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

  • [x] I tested with the latest mpv version to validate that the issue is not already fixed.
  • [x] I provided all required information including system and mpv version.
  • [x] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • [x] I attached the full, untruncated log file.
  • [x] I attached the backtrace in the case of a crash.

forthrin avatar Oct 30 '25 09:10 forthrin

The underlying issue might be that the FreeType formula in Homebrew is built without Brotli support, which is required to decode WOFF2 fonts.

If this is the case then this wouldn't be mpv's fault at all.

sfan5 avatar Oct 30 '25 10:10 sfan5

Possible resolutions:

A) mpv maintainers: Notify Homebrew maintainers (if this in fact is the issue) B) mpv maintainers: Silence the errors (pending or in the absence of a fix) C) mpv users: Move all WOFF files out of the Font directory (simple, but shouldn't be unecessary) D) mpv users: Compile FreeType from source (can't be expected)

forthrin avatar Oct 30 '25 11:10 forthrin