Problem with hebtxt.shx

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
dor_r@top-s.co.il
Posts: 8
Joined: 17 Jan 2017, 17:58

Problem with hebtxt.shx

Post by dor_r@top-s.co.il » 17 Jan 2017, 18:24

Hello.
I have a sample model with a text fiels in Hebrew. (Attached
sample heb.zip
(21.83 KiB) Downloaded 1426 times
)
the text style called "HEBTEXT" and its connected to a font named Hebtxt.shx (also attached
dwg.zip
Font File
(1.78 KiB) Downloaded 1471 times
).
cadImage.SearchSHXPaths = true;
cadImage.SHXSearchPaths = @"c:\Program Files\Autodesk\AutoCAD 2017\Fonts";
cadImage.UseSHXFonts = true;
.....

My code set the shx path to the directory with the font .than load the model and save it as image.
The text is displayed as ?????
The text looks good in Autocad and also in TrueView (See attachment
CaptureAutoCAD.JPG
CaptureAutoCAD.JPG (31.21 KiB) Viewed 50274 times
).

I've also noticed that cadImage.UseSHXFonts stays false and I cannot set it to True

What should I do?
Thanks
Dror

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

Re: Problem with hebtxt.shx

Post by support » 18 Jan 2017, 18:16

Hello Dror,

Thank you for the files.

Unfortunately, the library cannot display these Hebrew characters correctly. This problem needs to be fixed.


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

dor_r@top-s.co.il
Posts: 8
Joined: 17 Jan 2017, 17:58

Re: Problem with hebtxt.shx

Post by dor_r@top-s.co.il » 18 Jan 2017, 18:20

OK.
Other Hebrew fonts SHXs works just fine. What is the difference?
I need a workaround.
Can I iterate on all font styles and change font?
When can I expect a beta version with fix?

Dror

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

Re: Problem with hebtxt.shx

Post by support » 18 Jan 2017, 18:26

Dror,

At the moment I can't tell you what causes the problem, it requires investigation.


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

dor_r@top-s.co.il
Posts: 8
Joined: 17 Jan 2017, 17:58

Re: Problem with hebtxt.shx

Post by dor_r@top-s.co.il » 22 Jan 2017, 11:28

Hi,
It does work with your online demo on https://www.sharecad.org/

So I guess there is a workaround for it.
Can you please check?


Dror

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

Re: Problem with hebtxt.shx

Post by support » 23 Jan 2017, 00:25

Dror,

ShareCAD.org service is based on a drawing engine written in Delphi, it doesn't use CAD .NET library. So the problem concerns only our C# code.


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

dor_r@top-s.co.il
Posts: 8
Joined: 17 Jan 2017, 17:58

Re: Problem with hebtxt.shx

Post by dor_r@top-s.co.il » 23 Jan 2017, 14:25

Can I use the delphi drawing engine in my c# code
Dror

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

Re: Problem with hebtxt.shx

Post by support » 23 Jan 2017, 16:17

Dror,

No, it is not possible.


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

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

Re: Problem with hebtxt.shx

Post by support » 25 Jan 2017, 21:40

Dror,

For your information, this problem occurs only with non-Unicode SHX fonts.


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

Post Reply