|
Importing texts with SHX fonts |
Scroll |
SHX fonts were developed by Autodesk for native usage. The files of these fonts have the shx extension. In most cases, the DXF or DWG documents originating from AutoCAD contain texts with SXH fonts. When importing DXF or DWG documents, one of the most difficult tasks is to properly process special characters (geometric tolerance, surface location characters, etc.).
The AutoCAD software is bundled with SHX fonts (*.shx), as well as TrueType fonts (*.ttf) with the same names and same character sets as the SHX fonts. When you install AutoCAD on a computer, the SHX fonts are copied to the \Fonts subfolder inside the main AutoCAD folder while the TrueType fonts (*.ttf) are installed into the Windows operating system.
The SHX fonts are not supported in KOMPAS-3D. If the software detects that the imported DXF or DWG document uses SHX fonts, the following actions occur:
1.Search for files *.tfn for each detected SHX font (for files *.tfn, see section Converting texts).
•If these files are found, the text is converted according to the settings in these files.
•If the required *.tfn are not found, the software tries to search for installed TrueType fonts with the same names as the SHX fonts. All fount TrueType fonts are used instead of the corresponding SHX fonts. If the TrueType fonts with the same names are not found, the default KOMPAS-3D font is used. (When importing to a new fragment, the font for new documents will be used. When importing to an existing document , the font for the current document will be used.)
2.KOMPAS-3D special characters are substituted to the imported text according to the association setup on the Symbols page of the import settings dialog (see section Setting up character associations).
That being said, if you have received DXF or DWG documents and after importing them into KOMPAS-3D you notice that special characters are not rendered properly (e.g. they are substituted with letters), there are two ways to solve this issue.
Method 1
1.Contact the authors of these documents and request them to provide you with the TrueType fonts identical to the SHX fonts used in the documents you've received.
2.Import these fonts into Windows.
3.Retry the import if the names of the TrueType fonts match the names of the SHX fonts. If the names of the TrueType fonts are different from the names of the SHX fonts, then you should create a file for each SHX font named *.tfn (see section Converting texts), specifying the TrueType font as the substitute font, and then retry the import.
Method 2
1.Review the documents you've received (using AutoCAD or any other DWG/DXF viewer) and check the following:
•what special characters are not rendered properly;
•what SHX fonts contain these special characters.
2.Contact the authors of these documents and request them to provide you with these SHX fonts (if the font files were not present in the data package you've received).
3.View the SHX font files to define the code of the required special character. There are specialized programs to view the SHX files.
4.For each SHX font, create a *.tfn , specify the character, character set or KOMPAS-3D special character number to substitute the missing special character.
5.Retry the import.