Text that looks perfect inside a CAD drawing is not always ready for a laser cutter, router or CNC machining workflow. Fonts are stored as text objects, while most CAM systems work more reliably with actual geometry such as closed polylines, regions or 3D solids. In GstarCAD, you can convert lettering into machine-ready geometry using two practical workflows: create clean 2D contours with TXTEXP, or take those contours further and create 3D solids with REGION and EXTRUDE.
Which text conversion method should you use?
The correct method depends mainly on the machining operation you want to perform.
| Goal | Target format | Primary workflow | Typical CNC use |
|---|---|---|---|
| 2D laser, plasma or router cut | Closed 2D Polyline | TXTEXP → OVERKILL → PEDIT/JOIN | Profile or contour cut |
| 2D engraving or recessed pocket | Closed 2D Polyline | TXTEXP → PEDIT (Join) | Pocket or hatching toolpath |
| 3D embossed or raised lettering | 3D Solid | TXTEXP → REGION → SUBTRACT → EXTRUDE | 3D machining or relief work |
Method 1: How do you convert text to 2D polylines?
The first method is ideal when the CAM software needs outlines rather than editable font objects. This includes laser cutting, plasma cutting, profile routing and many engraving operations.
- Create the text using the required font, size and spacing.
- Keep a copy of the original editable text before converting it.
- Type
TXTEXPand press Enter. - Select the text objects and press Enter.
- Inspect the resulting outline geometry carefully.
- Use
OVERKILLwhere necessary to remove duplicate or overlapping segments. - Use
PEDITwith Join, orJOIN, to connect appropriate segments into continuous contours. - Check that every cutting contour is properly closed before exporting it to CAM.
TXTEXP changes text into graphical outline objects. This means the letters are no longer editable as text, but their shapes can now be used as normal CAD geometry.
Tip
Always keep the original text on a separate layer or in a backup copy. Once it has been converted into geometry, changing the wording or font is much less convenient.
Why should you clean the TXTEXP result?
Font outlines can contain many small line and curve segments. For normal drawing display this may not matter, but unnecessary segments, duplicates or tiny overlaps can create problems when generating CNC toolpaths.
OVERKILL is useful for removing duplicate or overlapping geometry, while PEDIT and JOIN can help turn separate segments into more useful continuous objects. The aim is to create clean, reliable contours before the geometry is sent to CAM software.
Watch out
Do not use aggressive OVERKILL tolerances without checking the result. Small details in a font may be intentional, and excessive cleanup can change the appearance of the lettering.
What about letters with holes?
Letters such as A, B, D, O, P and R contain both an outer contour and one or more internal contours. These inner loops are essential because they define the holes inside the letter.
For a profile or pocket toolpath, keep both the outside and inside loops closed. Do not join the inner loop to the outer loop as one continuous path. The CAM software needs to recognise them as separate closed boundaries.
This becomes even more important when converting the text into regions and 3D solids.
Method 2: How do you convert text into 3D solids?
If the lettering needs to become a physical 3D shape, start by converting the text outlines just as you would for the 2D workflow. Once the contours are clean and closed, they can be converted into regions.
- Convert the text outlines with
TXTEXP. - Clean and close the required contours.
- Type
REGIONand select the closed loops. - Press Enter to create Region objects.
- For letters containing holes, use
SUBTRACTto subtract the inner regions from the outer region. - Type
EXTRUDEand select the completed letter regions. - Enter the required extrusion height.
For example, to create lettering that is 5 mm high, convert the cleaned letter outlines into regions and extrude them by 5. The result is actual 3D solid lettering that can be used in further modelling or machining operations.
Why use REGION before EXTRUDE?
A Region represents a closed two-dimensional area rather than just its outline. This makes it particularly useful for letters with inner openings because Boolean operations can be performed before the final extrusion.
Consider the letter O. The outside contour becomes one region and the inside opening becomes another. Use SUBTRACT to remove the smaller inner region from the larger outer region. The resulting Region represents the actual material of the letter and can then be extruded into a correct solid.
Command: REGION ↵
Select objects: select closed text contours ↵
Command: SUBTRACT ↵
Select solids, surfaces, and regions to subtract from: select outer region ↵
Select solids, surfaces, and regions to subtract: select inner region ↵
Command: EXTRUDE ↵
Select objects: select finished region ↵
Specify height of extrusion: 5 ↵
What fonts work best for CNC conversion?
Simple fonts generally create cleaner machining geometry than highly decorative fonts. Complex lettering can produce a large number of short segments after conversion, which may result in unnecessarily dense toolpaths.
For CNC work, the goal is not simply to create as many outline segments as possible. The aim is to produce a clean contour that reproduces the required letter shape accurately without introducing unnecessary machining data.
Single-line engraving fonts are a different case. Because they are based on strokes rather than enclosed character outlines, they can be useful for centre-line engraving but are not automatically suitable for creating filled regions or extruded solid letters.
Practical example: raised CNC lettering
Suppose you need the word GSTARCAD as raised lettering on a machined plate. Create the text at the final required size, duplicate the original for backup and run TXTEXP.
Inspect the converted contours and clean duplicates where necessary. Join fragmented outlines and confirm that every letter forms valid closed loops. Convert the contours with REGION. For letters such as A, D and R, subtract the internal regions so the openings remain empty.
Finally, use EXTRUDE with a height of 3 mm. The lettering is now composed of 3D solids. These solids can remain separate for machining preparation or be combined with another model depending on the required manufacturing workflow.
What is the best font-to-CNC workflow?
For 2D machining, think text → outlines → cleanup → closed polylines → CAM. Use TXTEXP to obtain editable geometry, clean unnecessary segments with OVERKILL where appropriate and use PEDIT or JOIN to prepare reliable contours.
For 3D lettering, continue with closed contours → REGION → SUBTRACT inner openings → EXTRUDE. The important step in both workflows is not merely converting the font: it is producing clean, closed and logically separated geometry that the next CNC operation can understand reliably.