Simple lettering

Simple lettering

The <simple_lettering> element defines the core lettering parameters, including text content, font (alphabet), size, style (bold/italic), spacing, alignment, and baseline shape.


XML structure

<simple_lettering 
      text="Lettering 1"                    <!-- The text -->
      alphabet_name="London"      <!-- Embroidery alphabet name -->
      height="20.0"                           <!-- Height in mm (5.0–50.0) -->
      bold="false"                              <!-- Bold: true/false -->
      italic="false"                             <!-- Italic: true/false -->
      word_spacing="0.6"                <!-- Word spacing, as ratio of height -->
      justification="centre"              <!-- Multi-line justification -->
      baseline="horizontal"              <!-- Baseline type -->
      baseline_radius="50.0"           <!-- Circle radius in mm -->
      baseline_length="100.0"        <!-- Fixed baseline length in mm -->
      auto_fit_mode="spacing"       <!-- Auto-fit mode for fixed baselines -->
/>


Attributes

Attribute
Purpose
text
The lettering text. May contain multiple lines.
alphabet_name
Embroidery font face (alphabet) name. Must match an alphabet installed with the API.
height
Lettering height in mm (5.0–50.0).
bold
True or false. Makes text bold.
italic
True or false. Makes text italic.
word_spacing
Word spacing as a ratio of height – e.g. 0.6 = 60% of height.
justification
For multi-line text: leftrightcentre, or fit (fully justified).
baseline
Defines the text path. Options: horizontalverticalcircle_cw (circle clockwise), circle_ccw (circle counter-clockwise), horizontal_fixedvertical_fixed.
baseline_radius
Circle radius in mm (20–1000). Used only for circular baselines.
baseline_length
Length in mm (20–1000). Used for fixed baselines to constrain lettering width/height.
auto_fit_mode
How lettering fits the fixed baseline:
  1. spacing – adjusts spacing only
  2. letter – reduces letter width/height only
  3. letter_prop – proportionally reduces letter width/height
  4. whole – adjusts spacing and letter width/height
  5. whole_prop – proportionally adjusts all

Remarks

  1. Fixed baselines (horizontal_fixed, vertical_fixed) use baseline_length and auto_fit_mode to constrain size.
  2. Circle baselines use baseline_radius.
  3. For standard horizontal/vertical baselines, text size is flexible.

This allows precise control of embroidery text shape, alignment, and size.


Example

<simple_lettering
   text="Custom Text"
   alphabet_name="London"
   height="30.0"
   bold="true"
   italic="false"
   word_spacing="0.5"
   justification="centre"
   baseline="circle_cw"
   baseline_radius="80.0"
/>

  1. EWA design recipe
  2. EWA API methods overview
  3. EWA data packages overview