The application can't find the .shx and .ttf files that contain the needed characters. To solve this problem:
- Put the font file in the same folder as the drawing.
- If the drawing is placed in a folder other than the application, use the ACAD environment variable to set the folder with the needed font or use the application's findFile() method to specify where the font file is located.
OdString fontFile = pHostApp->findFile(L"fontFileName.ttf"); // Or use the full path name OdTtfDescriptor descr; pHostApp->ttfFileNameByDescriptor(descr, fontFile);
Detailed information about font handling can be found in the Font Handling topic.