Hello,
This code will be enough to apply a folder with SHX fonts:
Code: Select all
cadViewerControl1.SHXForm.AddPath("E:\\test");
CADConst.DefaultSHXParameters.UseSHXFonts is set to
true by default, so you may omit this line:
Code: Select all
CADConst.DefaultSHXParameters.UseSHXFonts = true;
TTF fonts are read only from the system folder
c:\Windows\Fonts\. To override the usage of the SHX fonts and enable the TTF fonts, you may use the following code:
Code: Select all
cadViewerControl1.SHXForm.AddPath("E:\\test");
CADConst.DefaultSHXParameters.UseSHXFonts = false;
CADConst.DefaultSHXParameters.UseTTFFonts = true;
Mikhail