Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
751df79d
Commit
751df79d
authored
Sep 20, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_drawtext: use @itemize environment for showing examples in docs
Beautify.
parent
7c249d4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
filters.texi
doc/filters.texi
+15
-9
No files found.
doc/filters.texi
View file @
751df79d
...
@@ -809,28 +809,34 @@ The size in number of spaces to use for rendering the tab.
...
@@ -809,28 +809,34 @@ The size in number of spaces to use for rendering the tab.
Default value is 4.
Default value is 4.
@end table
@end table
For example the command:
Some examples follow.
@example
drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'"
@end example
will draw "Test Text" with font FreeSerif, using the default values
@itemize
for the optional parameters.
@item
Draw "Test Text" with font FreeSerif, using the default values for the
optional parameters.
The command:
@example
@example
drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text':\
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
@end example
@item
will draw 'Test Text' with font FreeSerif of size 24 at position x=100
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
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
yellow with a red box around it. Both the text and the box have an
opacity of 20%.
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
Note that the double quotes are not necessary if spaces are not used
within the parameter list.
within the parameter list.
@end itemize
For more information about libfreetype, check:
For more information about libfreetype, check:
@url{http://www.freetype.org/}.
@url{http://www.freetype.org/}.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment