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);
- Put the font file in the same folder as the drawing. Be sure that the font contains the needed characters.
- 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