Font picker element widgets

<element id="title_font">
  <font_picker />
  <config>
    <restore />
  </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.

<restore/>

Calls x::w::font_picker_config's restore() method. The element must have a specified id, and the x::w::uigenerator must get constructed with a x::w::const_screen_positions parameter with preserved window positions.

appearance

Sets the font picker's appearance appearance object.