[FFmpeg-devel] [PATCH] vf_drawtext: use @itemize environment for showing examples in docs
Stefano Sabatini
stefasab at gmail.com
Tue Sep 20 20:30:12 CEST 2011
Beautify.
---
doc/filters.texi | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index a8600a5..1ab6450 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -795,28 +795,34 @@ The size in number of spaces to use for rendering the tab.
Default value is 4.
@end table
-For example the command:
- at example
-drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'"
- at end example
+Some examples follow.
-will draw "Test Text" with font FreeSerif, using the default values
-for the optional parameters.
+ at itemize
+
+ at 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
+ at 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%.
+ at 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"
+ at end example
+
Note that the double quotes are not necessary if spaces are not used
within the parameter list.
+ at end itemize
+
For more information about libfreetype, check:
@url{http://www.freetype.org/}.
--
1.7.2.5
More information about the ffmpeg-devel
mailing list