diff options
author | yethie <klimklim@tiscali.it> | 2023-06-14 18:58:32 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-06-19 22:35:53 +0200 |
commit | 692d37d2e9ac641fa477c7a039f4d1e3beb3bd47 (patch) | |
tree | d5a358db08bdee9e07990732859d69ca1340272a /doc | |
parent | 5f2d907de2ddefd024d161b66d63f8da6208d4d0 (diff) | |
download | ffmpeg-692d37d2e9ac641fa477c7a039f4d1e3beb3bd47.tar.gz |
avfilter/vf_drawtext: add y_align option
The new y_align option specifies if the user provided y value
is referred to the top of the text, to the font baseline or to the
top of the font
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 891c051029..9730444337 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -12390,6 +12390,16 @@ The value must contain exactly two letters, one for the vertical alignment (T=to 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 y_align +Specify what the @var{y} value is referred to. Possible values are: +@itemize @bullet +@item @code{text} the top of the highest glyph of the first text line is placed at @var{y} +@item @code{baseline} the baseline of the first text line is placed at @var{y} +@item @code{font} the baseline of the first text line is placed at @var{y} plus the + ascent (in pixels) defined in the font metrics +@end itemize +The default value of @var{y_align} is "text" for backward compatibility. + @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. |