[FFmpeg-devel] [PATCH] doc/filters: drawtext: add example of printing texts on same baseline
andrey.utkin at pb.com
Wed Nov 30 11:24:52 EET 2016
On Tue, Nov 29, 2016 at 10:19:04AM -0900, lou at lrcd.com wrote:
> 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.
Thanks for your comments.
It's hard for me to stress the point of the approach further.
I wonder if it becomes clearer if we use
in discussed scripts.
Maybe a paragraph describing the flaw of naive approach should be added
to example annotation itself? I just followed the present pattern, that
example description is very concise.
More information about the ffmpeg-devel