1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

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.
This commit is contained in:
yethie
2023-05-26 12:51:05 +02:00
committed by Paul B Mahol
parent 01d843f6d0
commit 5f2d907de2
2 changed files with 56 additions and 1 deletions

View File

@@ -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.