moi15moi/FontCollector ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python command line tool that scans Advanced SubStation Alpha subtitle files, finds every font they use, and then gathers those fonts for me. I want to be able to point it at one or more ASS files, or even a whole folder, and have it save the needed fonts in a chosen output location.

It should also be able to work with an MKV video file, collect the subtitle fonts, and mux them into the video using MKVToolNix. If the MKV already has fonts attached, I want an option to replace them or remove unused ones. Please also add a validator mode that checks whether an MKV has the right fonts attached and warns me if anything is missing.

Make sure it handles extra font folders too, can ignore system fonts if I want, can include fonts used in draw subtitles, and deals with variable fonts by converting them into a font collection when needed. Add basic logging and a helpful help screen for the commands.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab