Skip to content

Comparison with Industrial Formats and Fonts ​

DXF is a general-purpose design data exchange format, but in manufacturing sites and design fields, other 2D formats specialized for specific uses (Gerber, G-code, font data, etc.) are also used together. This explains the differences between these formats and DXF, and notes for conversion.


1. DXF vs Gerber Data (Gerber / RS-274X) ​

Gerber data is the industry standard format for printed circuit board (PCB) manufacturing.

FeatureDXFGerber (RS-274X)
Main UseMechanical design, general 2D/3D drawingsPCB patterns, masks, silk printing
StructureVector geometry (lines, arcs, polylines)"Flash" and "draw" via apertures
Layer MeaningDesigner's arbitrary classification (outline, dimensions, etc.)Directly linked to manufacturing process (surface copper, resist, drilling)
Coordinate SystemArbitrary (WCS/OCS)Absolute board coordinates (usually inches or mm)

Conversion Notes ​

  • Polarity: Gerber has concepts of "positive (draw)" and "negative (remove)" but DXF does not.
  • Fill Handling: When converting DXF HATCH or thick POLYLINE to Gerber, "fill" processing needs to be performed to paths that board manufacturing machines can understand.

2. DXF vs G-code (G-code / RS-274) ​

G-code is a numerical control (NC) language for controlling CNC machine tools and 3D printers.

FeatureDXFG-code
Role"Design Data" (what to draw)"Machining Commands" (how to move)
ContentShape definitions (start point, end point, radius, etc.)Sequential execution of coordinate movement, spindle rotation, coolant ON/OFF, etc.
Abstraction LevelHigh (geometric entities)Low (movement paths after tool radius compensation)
CompatibilityCommon in many CADHas dialects for each machine (controller)

Workflow Relationship ​

Usually processed in the flow: CAD (DXF) → CAM (Conversion) → NC (G-code). CAM software reads DXF and generates G-code considering tool thickness and cutting speed.


3. DXF vs Font Data (TTF / OTF / SHX) ​

Text data is one of the most problematic areas in CAD.

FormatTypeHandling in CAD
TTF / OTFOutline FontCommon to Windows/Mac. Displayed as Bezier curves in CAD.
SHXStroke FontAutoCAD-specific format. Composed only of lines (strokes).
DXF (Exploded)Geometric ShapesFonts "exploded" into line segments and arcs.

Text Traps in CAD ​

  • "Text" or "Shape": When sending to machines (laser cutters, etc.), text entities (TEXT, MTEXT) in DXF are often ignored.
  • Solution: Need to "outline (explode)" fonts into geometric shapes.
  • Missing SHX Fonts: When opening DXF containing SHX in software other than AutoCAD, fonts may be replaced with standard fonts, causing text positions and sizes to go wrong.

HPGL / PLT (Hewlett-Packard Graphics Language) ​

  • Use: Plotters (large printers) and old cutting machines.
  • Features: Very simple command format composed of pen up/down (PU, PD) and movement (PA). A format closer to machine control than DXF.

PDF (Vector PDF) ​

  • Use: Drawing distribution and viewing.
  • Comparison: PDF can also hold vector data internally, but accurately restoring layer information or CAD-like geometric attributes (like circle radius) is difficult.

5. Which Format Should You Choose? ​

PurposeRecommended FormatReason
Mechanical Design/Data ExchangeDXFSupported by most CAD and has high precision.
Board Manufacturing (PCB)Gerber (RS-274X)Board factories' manufacturing lines assume this format.
Direct Machine ControlG-codeThe only language that machine controllers can interpret.
Graphic DesignSVG / AIGood at handling colors, gradients, Bezier curves.

Related: DXF vs SVG | DXF vs DWG | G-code Overview and Versioning

MIT License