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

avfilter/vf_drawtext: add expression variables to control font ascent/descent

The following new variables can be used in the x and y expressions: font_a, font_d, top_a, bottom_d.
This commit is contained in:
yethie
2023-05-26 12:46:10 +02:00
committed by Paul B Mahol
parent fac7bb06d8
commit 01d843f6d0
2 changed files with 24 additions and 0 deletions

View File

@@ -12597,6 +12597,18 @@ contained in the rendered text, it is equivalent to @var{ascent} -
maximum glyph width, that is the maximum width for all the glyphs
contained in the rendered text
@item font_a
the ascent size defined in the font metrics
@item font_d
the descent size defined in the font metrics
@item top_a
the maximum ascender of the glyphs of the first text line
@item bottom_d
the maximum descender of the glyphs of the last text line
@item n
the number of input frame, starting from 0