Skip to content

Complains about all WOFF files in font directories #16985

@forthrin

Description

@forthrin

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:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • 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.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions