Fonts Problem

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
techrasoft
Posts: 10
Joined: 20 Oct 2005, 07:54
Location: USA

Fonts Problem

Post by techrasoft » 16 Nov 2005, 03:30

I have set up the SHX fonts directory and activated the SHX features, but somehow the fonts still don't look like the ones in AutoCad. It helps some of the text to look better when SHX is turned on.

For example, I have a simple paragraph of text that is inside of a box. When I zoom in and out, the text size changes in relation to the size of the box, so at some zooms, the text extends outside the box.

Any help is much appreciated.

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

Post by support » 17 Nov 2005, 13:53

Hello,
It is necessary to add SHX fonts support to the project for solving this problem.

Next code has to be added to the project:

Code: Select all

<b>uses</b>
... 
  sgConsts;//sgConsts can be found in the correspondent Lib folder in CADImportVCL 
//(http://www.cadsofttools.com/download/CADImportVCL.zip) package
...

<b>type</b>
  TCuctomForm = <b>class</b>(TForm)
...

<b>procedure</b> TCuctomForm.FormCreate(Sender: TObject);
<b>begin</b>
  bUseSHXFonts := True;
  sSHXSearchPaths := 'C:\Program Files\AutoCAD 2006\Fonts;C:\CustomSHXFonts;'// these pathes are as example
<b>end</b>;
Sergey

please post questions to the forum or write to support@cadsofttools.com

Post Reply