The CADSetSHXOptions function sets SHX fonts options.
Syntax:
int CADSetSHXOptions(
LPCSTR SearchSHXPaths,
LPCSTR DefaultSHXPath,
LPCSTR DefaultSHXFont,
BOOL UseSHXFonts,
BOOL UseACADPaths,
);
Parameters:
SearchSHXPaths |
Specifies the search paths for SHX fonts (separated by ";"). |
DefaultSHXPath |
Specifies the default search path for SHX fonts (must be set if AutoCAD or DWG TrueView are not installed on your machine). |
DefaultSHXFont |
Specifies the default SHX font. |
UseSHXFonts |
Specifies a value that defines whether to use SHX fonts or not (if set to false, TTF fonts will be used). |
UseACADPaths |
Specifies a value indicating whether to use AutoCAD fonts or not (paths will be found if AutoCAD or DWG TrueView are installed on your machine). |
Return Value:
If the function succeeds, the return value is 1.
If the function fails, the return value is zero. To get extended error information, call GetLastErrorCAD.
Note:
The CADSetSHXOptions function must be called before CreateCAD function.
If the paths to SHX fonts are specified, only these SHX fonts will be used. If the CADSetSHXOptions function is not called, the paths from the registry branch are used: HKEY_CURRENT_USER\Software\SoftGold\CS_Plugins
See Also
© 2003-2024 CADSoftTools
Go to CAD DLL