Tips & Tricks

From Font to Machine: Converting CAD Text to Polylines and 3D Solids for CNC

Convert CAD text into clean 2D polylines or 3D solids for laser cutting, engraving, routing and CNC machining.

Level
Intermediate
Best for
Laser, router and CNC-ready text geometry

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.

GoalTarget formatPrimary workflowTypical CNC use
2D laser, plasma or router cutClosed 2D PolylineTXTEXP → OVERKILL → PEDIT/JOINProfile or contour cut
2D engraving or recessed pocketClosed 2D PolylineTXTEXP → PEDIT (Join)Pocket or hatching toolpath
3D embossed or raised lettering3D SolidTXTEXP → REGION → SUBTRACT → EXTRUDE3D 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.

  1. Create the text using the required font, size and spacing.
  2. Keep a copy of the original editable text before converting it.
  3. Type TXTEXP and press Enter.
  4. Select the text objects and press Enter.
  5. Inspect the resulting outline geometry carefully.
  6. Use OVERKILL where necessary to remove duplicate or overlapping segments.
  7. Use PEDIT with Join, or JOIN, to connect appropriate segments into continuous contours.
  8. 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.

  1. Convert the text outlines with TXTEXP.
  2. Clean and close the required contours.
  3. Type REGION and select the closed loops.
  4. Press Enter to create Region objects.
  5. For letters containing holes, use SUBTRACT to subtract the inner regions from the outer region.
  6. Type EXTRUDE and select the completed letter regions.
  7. 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.

All tips Updated 6 October 2026
Continue learning
View all tips

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.