CADXChange

Guides/Drawing standards

Fix Missing SHX Fonts in Multiple Drawings — Change Text Style Fonts in One Pass

Made with TextSync
TextSync's Batch Edit Text Styles screen for six drawings, with a banner saying 12 styles use missing fonts and oldco.shx and hztxt.shx marked in red

Short answer: AutoCAD can show a substitute for a missing SHX font, either the one you pick in the Missing SHX Files prompt, the one named in the FONTALT variable, or one listed in a font mapping file (acad.fmp). These change what your computer displays. The drawing still names the missing font. To fix the drawing itself, open it, run STYLE, choose another font for each affected text style and save.

That is manageable for one drawing. A folder received from a consultant can hold dozens of files with the same three missing fonts, and the next person who opens them gets the same prompt. Chinese, Japanese and Korean text is hit hardest, because without the right big font the characters can show as question marks or other symbols.

This guide uses TextSync, part of CADXChange Toolkit: list the text styles of all the drawings in one grid, give the affected styles a font you have, and write them back with a backup. In the example, six drawings hold 30 text styles, and 12 of them name fonts that are not on the computer: oldco.shx and the big font hztxt.shx.

1. Read the text styles of all the drawings

Open TextSync, switch to Batch Edit Styles in the title bar and click Add Files… to pick the drawings. Their text styles appear in one grid, one row per style per drawing, with the Font and Big Font each one names.

If AutoCAD is installed on the computer, fonts it cannot find are shown in red, a banner lists the missing files, and Show only missing fonts hides every style that is fine. Without AutoCAD nothing is marked red: look in the Font and Big Font columns for the file names the prompt complained about, or for names you don't recognize.

2. Choose the replacement fonts

An SHX text style has two slots. Font draws Latin letters and numbers. Big Font draws Asian characters. A missing font in one slot needs a replacement of the same kind.

For Font, use your office standard; txt.shx, simplex.shx and romans.shx come with AutoCAD. For Big Font, AutoCAD includes gbcbig.shx for Simplified Chinese, chineset.shx for Traditional Chinese, extfont.shx for Japanese and whgtxt.shx for Korean.

With AutoCAD installed, the two drop-downs list the SHX files in its Fonts folder. You can always type a file name instead. Pick fonts that everyone who opens the drawings has, or the prompt simply moves to the next person.

3. Apply the new font to every affected style

Use the filter in the Font column header and type part of the missing file name. Only the styles that use it stay in the grid, across all drawings.

In the Batch edit bar, tick Font, enter the replacement and click Apply to All, which applies to the rows the filter shows. Here oldco.shx becomes txt.shx, and the banner then lists only hztxt.shx.

For the big font, untick Font, clear that filter, type the missing name into the Big Font filter, tick Big Font, enter gbcbig.shx and apply again. A field you don't tick is left as it is, so changing a font does not change heights or width factors.

4. Write the styles back

Close the drawings in your CAD program, then click Write Styles Back and confirm. Only drawings with a changed style are written. With backup on, each one is copied to the backup folder first, and Restore Backup… can bring it back later.

Open one of the drawings to check it. A different font has different character widths, so look at tight places such as title block fields and schedules.

5. Optional: make width factors and text heights match

A set built from several templates often has one style at width factor 0.7 in some drawings and 0.8 in others. Filter by style name, tick Width Factor, enter the value, apply and write. Single-line text that uses the style, in model space and on the layouts, gets the new width factor too. Multiline text and text inside block definitions are not rewritten.

Fixed Height works the same way when the value is above zero. To add a standard style to the drawings that lack it, use Create Text Style; drawings that already have a style with that name are skipped.

A missing font prompt can have other sources that a text style change does not reach: a font chosen inside a multiline text object, a style that belongs to an xref (fix it in the xref's own drawing), or the shape file of a complex linetype, such as ltypeshp.shx.

CADXChange Toolkit comes with a 30-day full trial. Writing to drawings needs a licence after the trial.

Try it on your own drawings

CADXChange Toolkit does this for a whole folder of drawings, with a preview and a backup first. The 30-day trial has every feature.

Start the free trial →

Before you start — common questions

If I ignore the missing SHX prompt, is the problem solved?
No. The text style still names the missing font, so the text is shown without it or in a substitute, and the prompt can return. Changing the font in the text style fixes the drawing.
Where can I get whgtxt.shx or another big font?
AutoCAD installs the common Asian big fonts, including whgtxt.shx for Korean, in its Fonts folder. A company's own SHX font has to come from whoever made the drawing. If you cannot get it, change the text style to a font you have and check the text afterwards.
Can I fix the fonts without AutoCAD?
Yes. TextSync reads and writes the drawings without AutoCAD, and you can type the replacement font names. What needs an AutoCAD installation is the red marking of missing fonts and the drop-down list of its SHX files.
Will replacing a font change my text?
The words and the text height stay. Letter shapes and widths come from the font, so lines of text can become longer or shorter. Check crowded areas.

Related guides