Jump to content

How to Explore acad fonts?


Ahankhah
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
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.   Restore formatting

  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.

 Share

×
×
  • Create New...