mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
locate.mjs copied a system font to the fixed path /tmp/locate-font.ttf and trusted any file already there. Another local user could plant that path first: a crafted font would mislabel the grid strips, a dangling link would make the copy write through it, and an unreadable file would stop every run. Pass the system font file to drawtext directly, quoted so a path with a space parses. With no known font present, drawtext uses its default font.