diff options
author | yethie <klimklim@tiscali.it> | 2023-05-26 12:51:05 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-06-19 22:35:53 +0200 |
commit | 5f2d907de2ddefd024d161b66d63f8da6208d4d0 (patch) | |
tree | b12b50cbcba634a04386ec777596b58f8de26c25 /doc | |
parent | 01d843f6d09b94f6f424d4d408ca2fc92dcaefd7 (diff) | |
download | ffmpeg-5f2d907de2ddefd024d161b66d63f8da6208d4d0.tar.gz |
avfilter/vf_drawtext: implement text alignment
Text can now be aligned vertically (top, middle, bottom) and horizontally (left, center, right)
relative to the background box.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index da355eca64..891c051029 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -12384,6 +12384,12 @@ The default value of @var{boxcolor} is "white". @item line_spacing Set the line spacing in pixels. The default value of @var{line_spacing} is 0. +@item text_align +Set the vertical and horizontal alignment of the text with respect to the box boundaries. +The value must contain exactly two letters, one for the vertical alignment (T=top, +M=middle, B=bottom) and one for the horizontal alignment (L=left, C=center, R=right). +Please note that tab characters are only supported with the left horizontal alignment. + @item borderw Set the width of the border to be drawn around the text using @var{bordercolor}. The default value of @var{borderw} is 0. |