[FFmpeg-devel] [PATCH] doc/filters: drawtext: add example of printing texts on same baseline

Lou Logan lou at lrcd.com
Tue Nov 29 21:19:04 EET 2016

On Tue, Nov 29, 2016, at 09:55 AM, Andrey Utkin wrote:
> The point is that with more naive approach to printing parts of text,
> using just same vertical offset (code given below), it will look fine in
> some cases (e.g. all capital letters), but case of printing part with
> capital letter(s) and part without capitals, the parts won't be aligned.
> With the following script, you'll see the dot floating at the top of "A"
> letter:

I already realized that, but this example may be confusing to users. I
assume the close proximity of TEXT1 and TEXT2 were to demonstrate the
"normalized" placement of various glyph heights for multiple drawtexts,
but users may see this and wonder why you need to print "A.", with the
characters close together as in your example, using two drawtexts when
you could just use one (with text='A.'). Increasing X2 may make the
example less confusing in that regard.

More information about the ffmpeg-devel mailing list