Ahankhah Posted December 24, 2011 Posted December 24, 2011 Hi All, as many of you know, there are ways to get hatch patterns via VLisp and without needing to open *.pat files. Is there any same way to get information about font files? If so, how? Any help, or clue is greatly appreciated. Quote
Lee Mac Posted December 24, 2011 Posted December 24, 2011 Perhaps check the Windows Fonts folder: [color=GREEN];; SpecialFolder - Lee Mac[/color] ([color=BLUE]defun[/color] LM:SpecialFolder ( folder [color=BLUE]/[/color] res spf wsh ) ([color=BLUE]vl-catch-all-apply[/color] ([color=BLUE]function[/color] ([color=BLUE]lambda[/color] [color=BLUE]nil[/color] ([color=BLUE]setq[/color] wsh ([color=BLUE]vlax-get-or-create-object[/color] [color=MAROON]"WScript.Shell"[/color]) spf ([color=BLUE]vlax-get-property[/color] wsh 'specialfolders) res ([color=BLUE]vlax-invoke[/color] spf 'item folder) ) ) ) ) ([color=BLUE]if[/color] spf ([color=BLUE]vlax-release-object[/color] spf)) ([color=BLUE]if[/color] wsh ([color=BLUE]vlax-release-object[/color] wsh)) res ) _$ (LM:SpecialFolder "Fonts") "C:\\Windows\\Fonts" Quote
Ahankhah Posted December 24, 2011 Author Posted December 24, 2011 Lee, thank you for your reply, LM:SpecialFolder can be a very good library function. But I am seeking a way to find the information of font files invoked by AutoCAD, id est any 'method' to extract font information (not the location of font file) to get curves and lines of each drawn character? Quote
Lee Mac Posted December 24, 2011 Posted December 24, 2011 Oh I see - I misunderstood your request. But I am seeking a way to find the information of font files invoked by AutoCAD, id est any 'method' to extract font information (not the location of font file) to get curves and lines of each drawn character? AFAIK, not through LISP. However, you can using .NET - example. Quote
Ahankhah Posted December 24, 2011 Author Posted December 24, 2011 Lee, it is a great program, thank you very much. Quote
Lee Mac Posted December 24, 2011 Posted December 24, 2011 Lee, it is a great program, thank you very much. Indeed it is, kudos to Sean Quote
Ahankhah Posted December 25, 2011 Author Posted December 25, 2011 Indeed it is, kudos to Sean And also to you, for your immediacy! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.