Garbled characters occur when outputting DXF as an image
Yusuke
8/1/2023 5:51 AM
|
---|
Hi Wout &c,
https://woutware.com/Forum/Topic/1665/japanese-font-for-dxftextstyle-with-dxfversio?returnUrl=%2FForum%2FUserPosts%3FuserId%3D11106949
Using WW.Cad.NetStandard.Pro, I created a process to convert .NetCore version DXF to an image with reference to the above URL.
It is said that setting the Japanese code page to DxfModel.Header.DrawingCodePage works correctly, but although the code page is set to 932, the Japanese character code is converted to a rectangle on the image. It was confirmed that Φ, half-width numbers, and half-width alphabets in the DXF file were not garbled.
I generated DxfText to output fixed text including Japanese, numbers (Japanese Arabic numerals), and Cyrillic letters to the image like the code in the attached file (code.png).
As a result, only Φ and Б were output to the fixed text part on the image, and the others were garbled in squares. Attachment (output_image.png).
Please show an example of how NetCore implements image conversion from a DXF file written in Japanese character code (CP932 and UTF-8) to prevent the Japanese character code from being garbled.
Also attach the input DXF file (input_sjis.dxf).
Yusuke
|
Wout
8/1/2023 8:11 AM
|
---|
Hi,
WW.Cad.NetStandard is no longer supported since over a year, I recommend you purchase a new license for CadLib 6.0 multi-platform, or CadLib 6.0 Windows. If the problem still persists I will look into it.
- Wout
|
Yusuke
8/8/2023 12:53 AM
|
---|
Hi Wout &c,
As pointed out, DXF output was performed using the trial version of WW.Cad_Net6.0 6.0.0-rc45.
However, no improvement in garbled characters was observed.
Please tell me an implementation example that properly converts Japanese characters in a DXF file to an image under the condition that .NET6.0 is used.
Yusuke
|
Wout
8/8/2023 8:56 AM
|
---|
Hi,
Please order a support ticket here to get support on this as it's not a problem created by CadLib.
If you upgrade to CadLib 6.0 you will receive a credit equal to the support ticket price in case you ordered the support ticket.
- Wout
|
Yusuke
8/8/2023 9:49 AM
|
---|
Hi Wout &c,
Thank you for answering.
I would like to purchase CadLib 6.0, but I am having trouble deciding between the Windows version and the multi-platform version.
If it is used in a Windows environment, will it work regardless of whether I select the Windows version or the multi-platform version?
If so, could you tell me what the advantages of choosing the Windows version are?
Yusuke
|
Wout
8/8/2023 9:51 AM
|
---|
Hi Yusuke,
Both will work on Windows, however, I will recommend using the Windows version on Windows, as it's using GDI+ for rendering to bitmap, which is much faster than the software rendering of the multi-platform version (probably a factor 5-10).
- Wout
|