redotvideo / revideo

Create Videos with Code
https://re.video
MIT License
2.59k stars 88 forks source link

fix: load fonts before all layout computations #240

Closed justusmattern27 closed 3 months ago

justusmattern27 commented 3 months ago

@hkonsti I believe this is ready for review. Even though we had a few font loading fixes before too, there were still a few issues (for example in the saas template) or subtitling example as users reported.

Awaiting fonts in the layout constructor is a good catch-all. This makes layout nodes async, so we should probably release it in 0.6.x