Jump to content
Ahankhah

How to Explore acad fonts?

Recommended Posts

Ahankhah

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.

Share this post


Link to post
Share on other sites
Lee Mac

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"

Share this post


Link to post
Share on other sites
Ahankhah

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?

Share this post


Link to post
Share on other sites
Lee Mac

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.

Share this post


Link to post
Share on other sites
Ahankhah

Lee, it is a great program, thank you very much.

Share this post


Link to post
Share on other sites
Lee Mac
Lee, it is a great program, thank you very much.

 

Indeed it is, kudos to Sean :)

Share this post


Link to post
Share on other sites
Ahankhah
Indeed it is, kudos to Sean :)

And also to you, for your immediacy! :o

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...