Why is a font that is used in a .dwg file displayed incorrectly?

  1. FAQ
  2. »
  3. Text and Font Questions

The font might not be available for the application that is displaying the drawing. Here is a list of possible ways to resolve this issue:

OdString fontFile = pHostApp->findFile(L"fontFileName.ttf"); // Or use the full path name
OdTtfDescriptor descr;
pHostApp->ttfFileNameByDescriptor(descr, fontFile);
  1. Put the font file in the same folder as the drawing. Be sure that the font contains the needed characters.
  2. If the drawing is placed in another folder than the application, use the ACAD environment variable for setting the folder with the needed font or use the application's findFile() method to specify where the font file is located:

Detailed information about font handling can be found here: https://docs.opendesign.com/td/FontHandling.html