Revision 7dd29fb6

View differences:

doc/filters.texi
464 464

  
465 465
For example the command:
466 466
@example
467
drawtext="fontfile=FreeSerif.ttf: text='Test Text': x=100: y=50: fontsize=24: fontcolor=yellow@@0.2: boxcolor=red@@0.2: box=1"
467
drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text'"
468 468
@end example
469 469

  
470
will draw 'Test Text' with font FreeSerif of size 24 at position
471
(100,50), text color is yellow, and draw a red box around text. Both
472
the text and the box have an opacity of 20%.
470
will draw "Test Text" with font FreeSerif, using the default values
471
for the optional parameters.
472

  
473
The command:
474
@example
475
drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text='Test Text':\
476
          x=100: y=50: fontsize=24: fontcolor=yellow@@0.2: box=1: boxcolor=red@@0.2"
477
@end example
478

  
479
will draw 'Test Text' with font FreeSerif of size 24 at position x=100
480
and y=50 (counting from the top-left corner of the screen), text is
481
yellow with a red box around it. Both the text and the box have an
482
opacity of 20%.
473 483

  
474 484
Note that the double quotes are not necessary if spaces are not used
475 485
within the parameter list.

Also available in: Unified diff