<?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
          xml:lang="en" xml:id="uigetfont">
    <refnamediv>
        <refname>uigetfont</refname>
        <refpurpose>Opens a dialog for selecting a font.</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>
            [fontname, fontsize, bold, italic] = uigetfont()
            [fontname, fontsize, bold, italic] = uigetfont(defaultfontname)
            [fontname, fontsize, bold, italic] = uigetfont(defaultfontname, defaultfontsize)
            [fontname, fontsize, bold, italic] = uigetfont(defaultfontname, defaultfontsize , defaultbold)
            [fontname, fontsize, bold, italic] = uigetfont(defaultfontname, defaultfontsize , defaultbold, defaultitalic);
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <para>All output arguments are optional, provided that their order is kept.</para>
        <variablelist>
            <varlistentry>
                <term>defaultfontname</term>
                <listitem>
                    <para>String: the default font name to select in the dialog.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>defaultfontsize</term>
                <listitem>
                    <para>Scalar: the default font size to select in the dialog.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>defaultbold</term>
                <listitem>
                    <para>Boolean: the default bold attribute in the dialog (%T for bold font, %F otherwise).</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>defaultitalic</term>
                <listitem>
                    <para>Boolean: the default italic attribute in the dialog (%T for bold font, %F otherwise).</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>fontname</term>
                <listitem>
                    <para>The selected font name ("" if the user cancels).</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>fontsize</term>
                <listitem>
                    <para>The selected font size ([] if the user cancels).</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>bold</term>
                <listitem>
                    <para>%T if bold attribute has been selected, %F otherwise ([] if the user cancels).</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>italic</term>
                <listitem>
                    <para>%T if italic attribute has been selected, %F otherwise ([] if the user cancels).</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>Creates a dialog window for selecting a font.</para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
uigetfont()
uigetfont("arial")
uigetfont("arial", 24)
uigetfont("arial", 24, %T)
uigetfont("arial", 24, %T, %F)
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See Also</title>
        <simplelist type="inline">
            <member>
                <link linkend="xlfont">xlfont</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
