Hi !
Is there any variable by which I can get font file location ?
- Rajat
India
|
Hi !
Is there any variable by which I can get font file location ?
- Rajat
India
Hi rajat,Originally Posted by rajat_bapi_mallick
How about this code
Code:(setq file "C:/Program Files/AutoCAD 2005/Fonts") (getfiled "Select a font file" file "" 0)
I think the OP is wanting to find out where AutoCAD is looking for fonts.Originally Posted by Adesu
Your code only looks in a particular directory which may or may not exist.
R.K. McSwain | CAD Panacea |
No, there is not a variable. AutoCAD will search all the paths in the support file search path for SHX fonts. You will have to query each of these paths.Originally Posted by rajat_bapi_mallick
The following code will return the support file search paths (as a semicolon separated string)
Code:(vl-load-com) (vla-get-SupportPath (vla-get-files (vla-get-preferences (vlax-get-acad-object) ) ) )
R.K. McSwain | CAD Panacea |
Thanks.
But I need windows default ".TTF" font file location.
-Rajat
Last edited by rajat_bapi_mallick; 2007-05-19 at 09:33 AM.
Ok. You didn't say that in your original post.Originally Posted by rajat_bapi_mallick
This should work.
Code:Environ("systemroot") & "\Fonts"
R.K. McSwain | CAD Panacea |
Thanks.
It really works.