fix: use font= for system fonts and avoid duplicate fontfile= in buildTextFilter#1309
fix: use font= for system fonts and avoid duplicate fontfile= in buildTextFilter#1309sudha09-git wants to merge 1 commit into
Conversation
|
@sudha09-git is attempting to deploy a commit to the magic-peach1's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ PR Format Check Passed — @sudha09-gitBasic format checks passed. A maintainer will review your code changes. This does not mean the PR is approved — it just means the format is correct. |
👋 Thanks for your PR, @sudha09-git!Welcome to Reframe — a browser-based video editor built for everyone 🎬 What happens next
Quick checklist
Useful links
Happy coding! 🎉 |
|
Hi @magic-peach Just a gentle reminder on this PR — all CI checks are passing and this fixes two distinct FFmpeg font bugs (wrong parameter for system fonts + duplicate fontfile= for custom fonts) with a minimal 2-line change. Could you please review when you get a chance? Happy to make any changes if needed! |
|
Hi! I've successfully fixed Issue #1243 in PR #1309. Fix Summary:
Files Changed:
Testing:
The PR is ready for review. Let me know if any changes are needed! |
Fixes #1243
Problem
buildTextFilter in src/lib/text-overlay.ts had two bugs:
System fonts (Arial, Roboto, Poppins etc.) were passed as
fontfile='Arial' — but fontfile expects a filesystem path, not a
font name. FFmpeg silently fell back to its default font (Vera),
so the user's chosen font was never applied to the exported video.
Custom uploaded fonts ended up with duplicate fontfile= arguments:
fontfile='CustomName':fontfile=/path/to/font.ttf
causing FFmpeg to reject the export entirely.
Fix
only when no custom fontfile path exists
font-family argument added