Page 1 of 1

Fonts Problem

Posted: 16 Nov 2005, 03:30
by techrasoft
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.

Posted: 17 Nov 2005, 13:53
by support
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