ffmpeg | branch: master | Andrey Utkin <andrey.ut...@pb.com> | Wed Dec 14 
14:37:47 2016 +0000| [c4afd4abce58bc3c25fd2964ae9d2a38dec5dc99] | committer: 
Lou Logan

doc/filters: drawtext: add example of printing texts on same baseline

Height of canvas produced by drawtext varies depending on symbols in
text, so add example for printing separate texts aligned horizontally.

Wording suggested by Lou Logan <l...@lrcd.com>

Signed-off-by: Andrey Utkin <andrey.ut...@pb.com>
Signed-off-by: Lou Logan <l...@lrcd.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c4afd4abce58bc3c25fd2964ae9d2a38dec5dc99
---

 doc/filters.texi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/doc/filters.texi b/doc/filters.texi
index 3ae3c46..06ca2e0 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -7135,6 +7135,14 @@ FOD=5 # fade out duration
 ffplay -f lavfi 
"color,drawtext=text=TEST:fontsize=50:fontfile=FreeSerif.ttf:fontcolor_expr=ff0000%@{eif\\\\:
 clip(255*(1*between(t\\, $DS + $FID\\, $DE - $FOD) + ((t - 
$DS)/$FID)*between(t\\, $DS\\, $DS + $FID) + (-(t - $DE)/$FOD)*between(t\\, $DE 
- $FOD\\, $DE) )\\, 0\\, 255) \\\\: x\\\\: 2 @}"
 @end example
 
+@item
+Horizontally align multiple separate texts. Note that @option{max_glyph_a}
+and the @option{fontsize} value are included in the @option{y} offset.
+@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
+@end example
+
 @end itemize
 
 For more information about libfreetype, check:

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to