Convert dwg to image text problem

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
pujols
Posts: 4
Joined: 24 May 2017, 10:03

Convert dwg to image text problem

Post by pujols » 17 Aug 2017, 12:50

Hi

I write application convert dwg to png, result image text is corerct

If application run as windows service, image chinese text render □□□

If any possible reason cause the result?

correct text
O.png
O.png (57.2 KiB) Viewed 35065 times
incorrect text ( run as windows service)
X.png
X.png (53.21 KiB) Viewed 35065 times

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Convert dwg to image text problem

Post by support » 18 Aug 2017, 21:27

Hello,

It appears that font file used by this Chinese text is missing or applied incorrectly when the application runs as a Windows service. Please send the .dwg file to the Technical Support e-mail, we will check what fonts are used in the drawing.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Convert dwg to image text problem

Post by support » 21 Aug 2017, 21:00

Hello,

Thank you for the file.

The given text uses TTF font DFPHeiMedium-B5. Please make sure that this font installed in the system and located in Windows Fonts folder (c:\Windows\Fonts\).


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

pujols
Posts: 4
Joined: 24 May 2017, 10:03

Re: Convert dwg to image text problem

Post by pujols » 22 Aug 2017, 20:48

Hi,

Thank you for your help.

DFPHeiMedium-B5 was not installed in my system.

After installing DFPHeiMedium-B5 font in system, application runs as windows service convert result text is correct.

But I don't know why font not installed in system, application only runs as windows service cause incorrect text result? If not run as windows service, result text is still correct.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Convert dwg to image text problem

Post by support » 25 Aug 2017, 15:18

Hello,

After installing the font DFPHeiMedium-B5 in the system the Chinese text should appear as follows:

Image

But on your screenshot the same text appears a bit differently. So I suppose that your application uses another TTF font when DFPHeiMedium-B5.ttf is not found in the system.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply