<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="definefontfamily" level="style" category="fonts" file="font-sel.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="rm" default="yes"/>
                <cd:constant type="ss"/>
                <cd:constant type="tt"/>
                <cd:constant type="mm"/>
                <cd:constant type="hw"/>
                <cd:constant type="cg"/>
                <cd:constant type="roman"/>
                <cd:constant type="serif"/>
                <cd:constant type="regular"/>
                <cd:constant type="sansserif"/>
                <cd:constant type="sans"/>
                <cd:constant type="support"/>
                <cd:constant type="teletype"/>
                <cd:constant type="type"/>
                <cd:constant type="mono"/>
                <cd:constant type="handwritten"/>
                <cd:constant type="calligraphic"/>
                <cd:constant type="math"/>
                <cd:constant type="mathematics"/>
            </cd:keywords>
            <cd:resolve name="keyword-font"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="rscale">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="designsize">
                    <cd:constant type="default"/>
                    <cd:constant type="auto"/>
                </cd:parameter>
                <cd:parameter name="goodies">
                    <cd:constant type="cd:file"/>
                </cd:parameter>
                <cd:parameter name="features">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="tf">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="bf">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="it">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="sl">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="bi">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="bs">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="sc">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefontfamily" variant="preset" level="style" category="fonts" file="font-sel.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="rm" default="yes"/>
                <cd:constant type="ss"/>
                <cd:constant type="tt"/>
                <cd:constant type="mm"/>
                <cd:constant type="hw"/>
                <cd:constant type="cg"/>
                <cd:constant type="roman"/>
                <cd:constant type="serif"/>
                <cd:constant type="regular"/>
                <cd:constant type="sansserif"/>
                <cd:constant type="sans"/>
                <cd:constant type="support"/>
                <cd:constant type="teletype"/>
                <cd:constant type="type"/>
                <cd:constant type="mono"/>
                <cd:constant type="handwritten"/>
                <cd:constant type="calligraphic"/>
                <cd:constant type="math"/>
                <cd:constant type="mathematics"/>
            </cd:keywords>
            <cd:resolve name="keyword-font"/>
            <cd:resolve name="keyword-name-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefallbackfamily" level="style" category="fonts" file="font-sel.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="rm" default="yes"/>
                <cd:constant type="ss"/>
                <cd:constant type="tt"/>
                <cd:constant type="mm"/>
                <cd:constant type="hw"/>
                <cd:constant type="cg"/>
                <cd:constant type="roman"/>
                <cd:constant type="serif"/>
                <cd:constant type="regular"/>
                <cd:constant type="sansserif"/>
                <cd:constant type="sans"/>
                <cd:constant type="support"/>
                <cd:constant type="teletype"/>
                <cd:constant type="type"/>
                <cd:constant type="mono"/>
                <cd:constant type="handwritten"/>
                <cd:constant type="calligraphic"/>
                <cd:constant type="math"/>
                <cd:constant type="mathematics"/>
            </cd:keywords>
            <cd:resolve name="keyword-font"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="rscale">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="designsize">
                    <cd:constant type="default"/>
                    <cd:constant type="auto"/>
                </cd:parameter>
                <cd:parameter name="goodies">
                    <cd:constant type="cd:file"/>
                </cd:parameter>
                <cd:parameter name="range">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="offset">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="check">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="force">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="features">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="tf">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="bf">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="it">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="sl">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="bi">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="bs">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="sc">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefallbackfamily" variant="preset" level="style" category="fonts" file="font-sel.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="rm" default="yes"/>
                <cd:constant type="ss"/>
                <cd:constant type="tt"/>
                <cd:constant type="mm"/>
                <cd:constant type="hw"/>
                <cd:constant type="cg"/>
                <cd:constant type="roman"/>
                <cd:constant type="serif"/>
                <cd:constant type="regular"/>
                <cd:constant type="sansserif"/>
                <cd:constant type="sans"/>
                <cd:constant type="support"/>
                <cd:constant type="teletype"/>
                <cd:constant type="type"/>
                <cd:constant type="mono"/>
                <cd:constant type="handwritten"/>
                <cd:constant type="calligraphic"/>
                <cd:constant type="math"/>
                <cd:constant type="mathematics"/>
            </cd:keywords>
            <cd:resolve name="keyword-font"/>
            <cd:resolve name="keyword-name-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefontfamilypreset" level="system" category="fonts" file="font-sel.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:inherit name="definefontfamily"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefontfamilypreset" variant="name" level="system" category="fonts" file="font-sel.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
