summaryrefslogtreecommitdiff
path: root/templates/lettering_generate_json.xml
diff options
context:
space:
mode:
Diffstat (limited to 'templates/lettering_generate_json.xml')
-rw-r--r--templates/lettering_generate_json.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/lettering_generate_json.xml b/templates/lettering_generate_json.xml
new file mode 100644
index 00000000..5f4907f7
--- /dev/null
+++ b/templates/lettering_generate_json.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>{% trans %}Generate JSON{% endtrans %}</name>
+ <id>org.inkstitch.lettering_generate_json.{{ locale }}</id>
+ <param name="extension" type="string" gui-hidden="true">lettering_generate_json</param>
+ <effect needs-live-preview="false">
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch">
+ <submenu name="{% trans %}Font Tools{% endtrans %}" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <param name="header" type="description" appearance="header" indent="1" >
+ {% trans %}Generates font.json which can be used by the lettering tool.{% endtrans %}
+ </param>
+ <spacer />
+ <separator indent="1"/>
+ <param type="string" name="font-name" gui-text="{% trans %}Name{% endtrans %}" indent="1" />
+ <param type="string" name="font-description" gui-text="{% trans %}Description{% endtrans %}" indent="1" />
+ <separator indent="1"/>
+ <spacer />
+ <param name="file-description" type="description" indent="1" >
+ {% trans %}Insert a font SVG file with kerning information.{% endtrans %}
+ </param>
+ <param type="path" name="font-file" gui-text="{% trans %}Font File{% endtrans %}" indent="1" mode="file" filetypes="svg"/>
+ <spacer />
+ <separator indent="1"/>
+ <param type="bool" name="auto-satin" gui-text="{% trans %}Autoroute Satin{% endtrans %}"
+ gui-description="{% trans %}Disable if you defined manual routing in your font.{% endtrans %}" indent="1">true</param>
+ <param type="bool" name="reversible" gui-text="{% trans %}Reversible{% endtrans %}"
+ gui-description="{% trans %}If disabled back and forth stitching will not be possile for this font.{% endtrans %}" indent="1">true</param>
+ <separator indent="1"/>
+ <param type="string" name="default-glyph" gui-text="{% trans %}Default Glyph{% endtrans %}" indent="1">&#65533;</param>
+ <separator indent="1"/>
+ <spacer />
+ <param name="min-scale" type="float" precision="1" min="0.1" max="1" gui-text="{% trans %}Min Scale{% endtrans %}" indent="1">1</param>
+ <param name="max-scale" type="float" precision="1" min="1" max="10" gui-text="{% trans %}Max Scale{% endtrans %}" indent="1">1</param>
+ <separator indent="1"/>
+ <param name="leading" type="int" precision="1" min="-100" max="100" gui-text="{% trans %}Leading (px){% endtrans %}" gui-description="{% trans %}If 0, the value will be calculated or defaults to 100{% endtrans %}" indent="1"></param>
+ <spacer />
+ <separator indent="1"/>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>