summaryrefslogtreecommitdiff
path: root/templates/letters_to_font.xml
blob: 7431ab498c26884b6275a7599fdc0fa4248c4200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Letters to font</name>
    <id>org.{{ id_inkstitch }}.letters_to_font</id>
    <param name="extension" type="string" gui-hidden="true">letters_to_font</param>

    <param name="notebook" type="notebook">
        <page name="options" gui-text="Options">
            <param name="file-format" type="optiongroup" appearance="combo" gui-text="File format">
                 {% for format, description, mimetype, category in formats %}
                 <option value="*.{{ format | upper }}" translatable="no">{{ format | upper }}</option>
                 {% endfor %}
            </param>
            <param type="path" name="font-dir" gui-text="Font directory" mode="folder" filetypes="svg"/>
            <spacer />
            <param name="import-commands" type="optiongroup" appearance="combo" gui-text="Import commands">
                 <option value="params">As param</option>
                 <option value="symbols">As symbol</option>
                 <option value="none">No</option>
            </param>
        </page>
        <page name="info" gui-text="Help">
            <label appearance="header">
                Includes all letters of a predigitized embroidery font (one file for each letter) into the document in order to make it available for the Ink/Stitch lettering system.
            </label>
            <label>
                Embroidery files need to have the name of the letter right before the file extension. E.g. A.dst or Example_Font_A.dst will be recognized as the letter A.
            </label>
            <spacer />
            <separator />
            <label>
                &#9888; After running this function, drag the baseline into the desired position and place the letters accordingly.
                Save your font in a separate folder. Then generate the json file (with "Autoroute Satin" unchecked).
            </label>
            <separator />
            <spacer />
            <label>More information on our website</label>
            <label appearance="url">https://inkstitch.org/docs/font-tools/#letters-to-font</label>
        </page>
    </param>

    <effect needs-live-preview="false">
        <object-type>all</object-type>
        <icon>{{ icon_path }}inx/font_management.svg</icon>
        <menu-tip>Inserts all available glyphs of a pre-digitized font into the document to make them available for the lettering tool</menu-tip>
        <effects-menu>
            <submenu name="{{ menu_inkstitch }}" translatable="no">
                <submenu name="Font Management" />
            </submenu>
        </effects-menu>
    </effect>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>