mightyscape-1.2/extensions/fablabchemnitz/stroke_font_creator/stroke_font_templ.inx

49 lines
3.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Custom Stroke Font - Create Font Design Template</name>
<id>stroke_font_creator._stroke_font_templ</id>
<param name="tab" type="notebook">
<page name="createStrokeFontTempl" gui-text="Create Font Design Template">
<param name="rowCnt" type="int" min="1" max="999999" gui-text="No of Rows:">5</param>
<param name="glyphCnt" type="int" min="1" max="999999" gui-text="Glyph Count:">175</param>
<param name="fontSize" type="int" min="5" max="999999" gui-text="Font Size:">1000</param>
<param name="spaceWidth" type="int" min="1" max="999999" gui-text="Space Width:">500</param>
<param name="rvGuides" type="bool" gui-text="Right Vertical Guides">false</param>
<spacer />
<separator />
<spacer />
<param name="createGlyphs" type="bool" gui-text="Create Source Glyphs">true</param>
<param name="srcFontFamily" type="string" gui-text="Source Font Family:" />
<param name="fontType" type="optiongroup" appearance="combo" gui-text="Source Font Style:">
<option value="normal">Regular</option>
<option value="italic">Italic</option>
<option value="bold">Bold</option>
<option value="bolditalic">Bold Italic</option>
</param>
<param name="strokeOpacity" type="float" gui-text="Source Glyph Stroke Opacity">1</param>
<param name="fillOpacity" type="float" gui-text="Source Glyph Fill Opacity">0.1</param>
<param name="startGlyph" type="string" max_length="4" gui-text="First Glyph:">0</param>
<spacer />
<label>This extension overwrites the current document</label>
</page>
<page name="desc" gui-text="Help">
<label xml:space="preserve">Inkscape extension to generate template for designing / tracing custom stroke font.
Check the 'Generate Source Glyphs' option to create characters of the given size, stroke and fill opacity from the source font family; these can be used for tracing the stroke font glyphs.
You can optionally enter the first character or its unicode value in the 'First Glyph' text box. To input the unicode value, enter the 4 digit hex unicode in this field (e.g. 00C0 for À). Or you can directly enter just À. This character will be considered for rendering the font family glyphs in the template. If there is no entry in 'First Glyph' and if 'Generate Source Glyphs' is checked, the font family glyphs start from glyph corresponding to the character A.
Checking the 'Right Vertical Guides' options, creates an extra vertical guide at the right extreme of each glyph for manual setting of right offset.
In Space Width field enter the width of blank space between rendered words. This is generally 1/3 to 1/2 times the Font Size.</label>
</page>
</param>
<effect>
<object-type>path</object-type>
<effects-menu>
<submenu name="FabLab Chemnitz">
<submenu name="Text"/>
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">stroke_font_templ.py</command>
</script>
</inkscape-extension>