let you have a phrase where there is a word ( or a list of words ) that you want to underline, with a different color.
Apparently, you have to "split" your phrase into 3 different drawtext ( with different colors, but how can you set the exact "x" position for the second and third drawtext?
On the ffmpeg site , there is this example:
drawtext=fontfile=FreeSans.ttf:text=DOG:fontsize=24:x=10:y=20+24-max_glyph_a,
drawtext=fontfile=FreeSans.ttf:text=cow:fontsize=24:x=80:y=20+24-max_glyph_a
but I don't understand how to calculare the exact position of second element: "80" ? how "80" is calculated?
And finally, is there another graceful option to draw a word inside a phrase with a different color? ( best would be to use a single drawtext )