<font>

Specifies the font used in a text overlay. This element is not used for image overlays.

Syntax

<font
    name = "string"
    size = "positive int"
    style = "string"
    fgcolor = "string"

/>

Attributes

Attribute

Data Type

Required?

Default

Description

fgcolor

string or integer

no

white

Color of text. Values are: red, blue, green, yellow, magenta, cyan, white, black, transparent or an unsigned integer. If a color enumeration is specified, the color will be opaque.

If an integer is specified, use the format 0xRRGGBBTT, where RR is a 2-digit hexadecimal value for the red component, GG is for the green component, BB is for the blue component, and TT is the value for the transparency component. Transparent can be used as a color or specified in the TT of the bitmask.

name

string

yes

font:///usr/share/fonts/liberation/
LiberationSans-Regular.ttf

Name of the font, such as Arial or Times New Roman. Specify the URL to the font file using this format: font:///usr/share/fonts/...

size

positive int

yes

14

Font size.

style

string

no

[none]

One or more attributes to apply to the text: bold, italic, underlined, outlined.

Details

For more information on text overlay and image overlay, see <overlay>.

Parents

<content>