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!

