Page 1 of 1

Convert dwg to image text problem

Posted: 17 Aug 2017, 12:50
by pujols
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 35084 times
incorrect text ( run as windows service)
X.png
X.png (53.21 KiB) Viewed 35084 times

Re: Convert dwg to image text problem

Posted: 18 Aug 2017, 21:27
by support
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

Re: Convert dwg to image text problem

Posted: 21 Aug 2017, 21:00
by support
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

Re: Convert dwg to image text problem

Posted: 22 Aug 2017, 20:48
by pujols
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.

Re: Convert dwg to image text problem

Posted: 25 Aug 2017, 15:18
by support
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