aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2011-09-20 12:48:25 +0200
committerStefano Sabatini <stefasab@gmail.com>2011-09-22 00:45:59 +0200
commit751df79d29b0eec90402d5488280d545286adb7d (patch)
treef123af42daa808a5bc8bdee12f07b4c57a142862
parent7c249d4fbaf4431b20a90a3c942f3370c0039d9e (diff)
downloadffmpeg-751df79d29b0eec90402d5488280d545286adb7d.tar.gz
vf_drawtext: use @itemize environment for showing examples in docs
Beautify.
-rw-r--r--doc/filters.texi24
1 files changed, 15 insertions, 9 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index fc33accff7..36ba75cc02 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -809,28 +809,34 @@ The size in number of spaces to use for rendering the tab.
Default value is 4.
@end table
-For example the command:
-@example
-drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'"
-@end example
+Some examples follow.
-will draw "Test Text" with font FreeSerif, using the default values
-for the optional parameters.
+@itemize
+
+@item
+Draw "Test Text" with font FreeSerif, using the default values for the
+optional parameters.
-The command:
@example
-drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text':\
- x=100: y=50: fontsize=24: fontcolor=yellow@@0.2: box=1: boxcolor=red@@0.2"
+drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'"
@end example
+@item
will draw 'Test Text' with font FreeSerif of size 24 at position x=100
and y=50 (counting from the top-left corner of the screen), text is
yellow with a red box around it. Both the text and the box have an
opacity of 20%.
+@example
+drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text':\
+ x=100: y=50: fontsize=24: fontcolor=yellow@@0.2: box=1: boxcolor=red@@0.2"
+@end example
+
Note that the double quotes are not necessary if spaces are not used
within the parameter list.
+@end itemize
+
For more information about libfreetype, check:
@url{http://www.freetype.org/}.