summaryrefslogtreecommitdiff
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-07 15:09:16 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-10 15:16:47 +0200
commit40b7a27bad8b8b35cb215bf4f4cba02a00d6f9e2 (patch)
tree7fd99a179bad2591051a2116925bfd0e09da0045 /doc/filters.texi
parentbe9b0d2c5a5e22fcc10467400e95a5ee4524ff07 (diff)
vf_drawtext: fontconfig support.
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 5d19fed00d..d16644582b 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -1414,6 +1414,9 @@ with or without text parameter. @var{rate} option must be specified.
frame rate (timecode only)
@end table
+If libavfilter was built with @code{--enable-fontconfig}, then
+@option{fontfile} can be a fontconfig pattern or omitted.
+
Some examples follow.
@itemize
@@ -1467,11 +1470,20 @@ The glyph baseline is placed at half screen height.
drawtext=fontsize=60:fontfile=FreeSerif.ttf:fontcolor=green:text=g:x=(w-max_glyph_w)/2:y=h/2-ascent
@end example
+@item
+Use fontconfig to set the font. Note that the colons need to be escaped.
+@example
+drawtext='fontfile=Linux Libertine O-40\\:style=Semibold:text=FFmpeg'
+@end example
+
@end itemize
For more information about libfreetype, check:
@url{http://www.freetype.org/}.
+For more information about fontconfig, check:
+@url{http://freedesktop.org/software/fontconfig/fontconfig-user.html}.
+
@section fade
Apply fade-in/out effect to input video.