element widgets<element id="title_font"> <font_picker /> <config> <name>title_font</name> </config> </element>
Specifying an element
with a <font_picker/>
creates a new theme widget
which is an
x::w::font_picker
widget.
This is equivalent to invoking the factory's
create_font_picker() method.
An optional config value
initializes
create_font_picker's
x::w::font_picker_config
parameter, as follows:
initial_font
Sets the
x::w::font_picker_config's
initial_font. The value of the
initial_font element is an
id of a
font.
ok_label
This x::w::text_param value sets
x::w::font_picker_config's
ok_label.
cancel_label
This x::w::text_param value sets
x::w::font_picker_config's
cancel_label.
<optional/>
This sets
x::w::font_picker_config's
selection_required
setting to false.
<select_by_foundry/>
This sets
x::w::font_picker_config's
select_by_foundry
setting to true.
<foundry_required/>
This sets
x::w::font_picker_config's
foundry_required
setting to true.
name
The name gives a unique label to this
font picker (a unique label in its window) which identifies the
font picker's configuration. A set
name results in the font picker
settings getting preserved and restored the next time a font
picker gets created in its main window.
appearance
Sets the font picker's appearance
appearance
object.