tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.78k stars 392 forks source link

How to setXY() after using setStyle() of FFText? #429

Open pdtan opened 3 months ago

pdtan commented 3 months ago

I want to set text to center of video, alignCenter() didn't do it. It's possible to center text if text width is measured after setStyle() then set x coordinate of text to (video_width-text_width)/2, but setXY() is only working before using setStyle().