[Bug] HOOPS Communicator don't support hztxt.shx font

I used the following command to convert the test.dwg file into an .scs file:
"D:\HOOPS_Communicator\3rd_party\node\bin\node.exe" "D:\HOOPS_Communicator\quick_start\scripts\easy_convert.js" D:\test_dwg\test.dwg

After the conversion, I noticed that some Chinese text was garbled.

hztxt.zip (634.8 KB)

Upon investigation, I found that the garbled text used the hztxt.shx font. However, when I opened the test.dwg file using AutoCAD software, there were no issues with Chinese text display.

Additionally, I have already configured an extra font loading directory in the quick_start\scripts\easy_convert.js script, as shown below:

const load_all_configurations = "1";
const export_attributes = "1";
const always_substitute_font = "false";
const substitution_font = "SimSun";

let license_key = "xxxxxx";
if (process.platform !== "win32") {
    license_key = `'${license_key}'`;
}

// prettier-ignore
const process_args = [
    converter_path,
    '--input', `"${abs_path}"`,
    '--license', license_key,
    '--output_sc', output_sc_path,
    '--output_scs', output_scs_path,
    '--sc_create_scz', '1',
    '--sc_compress_scz', '1',
    '--output_png', output_png_path,
    '--background_color', png_background_str,
    '--output_png_resolution', png_resolution_str,
    '--load_all_configurations', load_all_configurations,
    '--sc_export_attributes', export_attributes,
    '--prc_font_directories', 'D:/fonts_test/Fonts',
    '--always_substitute_font', always_substitute_font,
    '--substitution_font', substitution_font
];

All the font files in the directory D:/fonts_test/Fonts were copied from the fonts directory of the AutoCAD software installation directory.

Therefore, I am certain that this is a bug in HOOPS Communicator when converting .scs files. Can someone please help me with this? Thank you in advance!

Hello,

It looks like you only included the .shx in the zip file. We kindly request that you please send us the DWG file too ― preferably via the Support Portal. If you don’t have access, you can send me a direct message attaching the DWG file by clicking my profile.

Thanks,
Tino

1曲沃中水回用工程工艺施工图20170425_t3.zip (1.1 MB)

Thank you for taking the time to reply. The dwg file I mentioned is in the attachment, please unzip it and obtain it.

Thanks for providing the CAD file.

It’s possible that you are still missing fonts. To confirm that all fonts are being found and loaded, you can use the Converter option output_model_info. In the generated text file, there is a section called “File Information” which will list any missing fonts, for example:

Do you mean to add this parameter "--output_model_info" to print debugging information to find out which font file is missing?

after I append this config option as below:
‘–output_model_info’, “debug_20251024.txt”

the debug information returned in debug_20251024.txt was:

DWG/DXF file reader.
Reading data from file  : D:\test_dwg\1曲沃中水回用工程工艺施工图20170425_t3.dwg




---------- Reader options    --------------------------------------

---- Standard read options                 ------------------------

Read drawings           : Yes




---------- File Information  --------------------------------------

Model name                    : (null)
Version/Release               : R15 (2000)
Unit (multiple of mm)         : 1

Replace font ᅨᅫᅩ¥ with SIMSUN.TTC
WAR (null) - Cannot load font [.shx]
Replace font ᅨᅫᅩ¥ with SIMSUN.TTC

It seems that the “ᅨᅫᅩ¥” font file was missing, but the name of it was garbled, so please tell me what should I do next?
If there are any errors or omissions in what I have stated above, correct me anytime. Looking forward to your furthure comment.

It would probably be best to create a support ticket for the issue that you are having. Please see my direct message to you in this regard.