From f1b239ec8b38474d31f3bfea1f0b1693774fa432 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 12 Apr 2014 16:02:50 +0200 Subject: drawtext: Add fontconfig support Introduce the `font` option and make it optional to pass a fontfile. Signed-off-by: Luca Barbato --- doc/filters.texi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc/filters.texi') diff --git a/doc/filters.texi b/doc/filters.texi index 18531de295..d10a107b64 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1115,6 +1115,8 @@ libfreetype library. To enable compilation of this filter, you need to configure Libav with @code{--enable-libfreetype}. +To enable default font fallback and the @var{font} option you need to +configure Libav with @code{--enable-libfontconfig}. The filter also recognizes strftime() sequences in the provided text and expands them accordingly. Check the documentation of strftime(). @@ -1123,9 +1125,12 @@ It accepts the following parameters: @table @option +@item font +The font family to be used for drawing text. By default Sans. + @item fontfile The font file to be used for drawing text. The path must be included. -This parameter is mandatory. +This parameter is mandatory if the fontconfig support is disabled. @item text The text string to be drawn. The text must be a sequence of UTF-8 -- cgit v1.2.3