Author Topic: How to find out where Acad reads font files from?  (Read 12488 times)

0 Members and 1 Guest are viewing this topic.

T.Willey

  • Needs a day job
  • Posts: 5251
How to find out where Acad reads font files from?
« on: July 20, 2007, 02:49:23 PM »
I want to be able to populate a list box in a dcl with all the font's that show up when a user is in the styles command.  I'm trying to improve one of my routines that I just did to merge text styles.  I want to be able to create text styles from the dialog, but I don't see where one can find out where Acad reads it's font files from.

One thought was looking at all paths within the preferences, and searching for anything that has the extension of a font file, but I don't see how it knows where to find the true type (window) fonts.

Thanks in advance.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Guest

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #1 on: July 20, 2007, 02:56:09 PM »
C:\Windows\Fonts is the only location a TTF can be installed as far as I know.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: How to find out where Acad reads font files from?
« Reply #2 on: July 20, 2007, 02:59:31 PM »
C:\Windows\Fonts is the only location a TTF can be installed as far as I know.
Thanks Matt.  Didn't know that.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Guest

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #3 on: July 20, 2007, 03:01:19 PM »
You're welcome!

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #4 on: July 20, 2007, 08:39:17 PM »
This is because C:/windows/fonts is not a folder. It's a program that just looks like a folder. It serves the fonts up to the O/S when they're called for without the fonts having to reside in memory. (I believe. Windows gurus please correct me if I'm wrong here)

To see this just copy a true type font from Fonts to any other location, and the name will change. What you now see is the true file name. What you see in the Fonts folder is what the font tells the program to display as the name.

Outside of the Fonts folder it cannot do so.

For instance the font Impress BT will display the actual name TT0209M_.TTF once you copy it out of the Fonts folder.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How to find out where Acad reads font files from?
« Reply #5 on: July 20, 2007, 08:53:20 PM »
Tim, Does the Fonts Folder in the Acad folder help ?

Personally, I cheat ...
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #6 on: July 20, 2007, 09:23:37 PM »
AFAICT it's got to be in the Windows fonts folder. Putting it in the Autocad fonts folder won't do it.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #7 on: July 20, 2007, 09:59:02 PM »
If I pretend to know what you're looking for perhaps this --

Code: [Select]
(defun _GetSpecialFolder ( name / wshShell specialFolders result )
   
    (vl-catch-all-apply
       '(lambda (  )
            (setq
                wshShell       (vlax-create-object "WScript.Shell")
                specialFolders (vlax-get wshShell 'SpecialFolders)
                result         (vlax-invoke specialFolders 'Item name)
            )             
        )
    )

    (if specialFolders (vlax-release-object specialFolders))
    (if wshShell (vlax-release-object wshShell))
   
    result

)

(_GetSpecialFolder "fonts")

=> "C:\\Windows\\Fonts"

Is that what you're looking for Tim?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #8 on: July 21, 2007, 12:09:25 AM »
In case anyone is curious about other 'special folders' that are available --

Code: [Select]
(defun _GetSpecialFolders ( / wshShell specialFolders result )
   
    (vl-catch-all-apply
       '(lambda ( )
            (setq
                wshShell       (vlax-create-object "WScript.Shell")
                specialFolders (vlax-get wshShell 'SpecialFolders)
            )
            (setq result
                (mapcar
                   '(lambda ( name )
                        (list
                            name
                            (vlax-invoke specialFolders 'Item name)
                        )                       
                    )
                   '(
                        "AllUsersDesktop"
                        "AllUsersStartMenu"
                        "AllUsersPrograms"
                        "AllUsersStartup"
                        "Desktop"
                        "Favorites"
                        "Fonts"
                        "MyDocuments"
                        "NetHood"
                        "PrintHood"
                        "Programs"
                        "Recent"
                        "SendTo"
                        "StartMenu"
                        "Startup"
                        "Templates"
                    )               
                )
            )             
        )
    )

    (if specialFolders (vlax-release-object specialFolders))
    (if wshShell (vlax-release-object wshShell))
   
    result

)

(GetSpecialFolders) <Vista Ultra> ...

("AllUsersDesktop"   "C:\\Users\\Public\\Desktop")
("AllUsersStartMenu" "C:\\ProgramData\\Microsoft\\Windows\\Start Menu")
("AllUsersPrograms"  "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs")
("AllUsersStartup"   "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup")
("Desktop"           "C:\\Users\\UserName\\Desktop")
("Favorites"         "C:\\Users\\UserName\\Favorites")
("Fonts"             "C:\\Windows\\Fonts")
("MyDocuments"       "C:\\Users\\UserName\\Documents")
("NetHood"           "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\Network Shortcuts")
("PrintHood"         "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\Printer Shortcuts")
("Programs"          "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs")
("Recent"            "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\Recent")
("SendTo"            "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\SendTo")
("StartMenu"         "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu")
("Startup"           "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup")
("Templates"         "C:\\Users\\UserName\\AppData\\Roaming\\Microsoft\\Windows\\Templates")


If you want additional info ... looky. There are typos on the linked page, can you find them?

/Later dudes.

:)
« Last Edit: July 21, 2007, 12:27:05 AM by MP »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

T.Willey

  • Needs a day job
  • Posts: 5251
Re: How to find out where Acad reads font files from?
« Reply #9 on: July 21, 2007, 03:03:10 AM »
Thanks guys.  I will look into this more on monday when I'm not busy, and have Acad with me.  This is how I did it in my code for now.
Code: [Select]
(foreach path (cons "C:\\Windows\\Fonts" (StrParse (getenv "ACAD") ";"))
 (foreach font (append (vl-directory-files path "*.shx" 1) (vl-directory-files path "**.ttf" 1))
  (if (not (assoc font FontList))
   (setq FontList (cons (cons font path) FontList))
  )
 )
)

I think I like the way Michael did it with the special folder, and looking for the font within them.  I like that way as it is not hard coded anywhere.

Tim, Does the Fonts Folder in the Acad folder help ?
It didn't look like any true type fonts were within those folders.  I could have be wrong.  Maybe on others computers there are in there, but mine didn't seem to have any.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: How to find out where Acad reads font files from?
« Reply #10 on: July 23, 2007, 11:41:35 AM »
Thanks again Michael.  This seems to be the best way to do what I want.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #11 on: July 23, 2007, 11:47:35 AM »
My pleasure Tim, thanks.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How to find out where Acad reads font files from?
« Reply #12 on: July 23, 2007, 03:01:57 PM »
 There should be a way to retrieve the font name along with the file name like you see when using the file browser & viewing the Font Folder.  Because you cant tell fron the file name the actual Font Name.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: How to find out where Acad reads font files from?
« Reply #13 on: July 23, 2007, 03:20:13 PM »
This is because C:/windows/fonts is not a folder. It's a program that just looks like a folder. It serves the fonts up to the O/S when they're called for without the fonts having to reside in memory. (I believe. Windows gurus please correct me if I'm wrong here)

To see this just copy a true type font from Fonts to any other location, and the name will change. What you now see is the true file name. What you see in the Fonts folder is what the font tells the program to display as the name.

Outside of the Fonts folder it cannot do so.

For instance the font Impress BT will display the actual name TT0209M_.TTF once you copy it out of the Fonts folder.

The windows font folder is simply another folder, just like all other folders. The only difference is the context handler is different for that specific folder.

By looking into the directory from the command window you will see the fonts are listed just like any other file. The long names you see are the names defined in the font file as retrieved by the context handler.

Every "special" folder has a context handler and you can remove that context handler if you wish, but it is not advisable as system instability can occur.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #14 on: July 23, 2007, 04:34:13 PM »

The windows font folder is simply another folder, just like all other folders. The only difference is the context handler is different for that specific folder.

By looking into the directory from the command window you will see the fonts are listed just like any other file. The long names you see are the names defined in the font file as retrieved by the context handler.

Every "special" folder has a context handler and you can remove that context handler if you wish, but it is not advisable as system instability can occur.

OK, that seems a little clearer. So I take it that these "context handlers" are programs called by a folder based on some properties given it? In any event, when you click a typical folder, you are activating the default behavior of Explorer, because it has the "default" context handler assigned to it? When you dump a new TTF into the Fonts folder, it's this context handler that "installs" it as an available font?

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: How to find out where Acad reads font files from?
« Reply #15 on: July 23, 2007, 04:46:52 PM »
Correct ... if you browse to the Windows\Font folder and set the attributes of desktop.ini to -h -r -s, you will be able to copy it to another location and view the class id of the shell handler. You could then cross reference that in the registry to see what libraries are actually being used to give the folder the functionality you see.

Usually you can set your own context handlers for special folders, but the problem with the fonts folder is that windows allows only 1 to be active at any given time, therefore unless you change the default folder (and cause instability in Windows) you will not be able to create a second font folder, not that you would want to ...

Many folders have context handlers and you can actually create your own special folders if you create the context handler properly.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #16 on: July 23, 2007, 05:06:41 PM »
... if you browse to the Windows\Font folder and set the attributes of desktop.ini to -h -r -s, you will be able to copy it to another location and view the class id of the shell handler. You could then cross reference that in the registry to see what libraries are actually being used to give the folder the functionality you see....

Errrr... I think I'd rather poke myself with a sharp stick, but thanks anyway.  :wink:


Maverick®

  • Seagull
  • Posts: 14778
Re: How to find out where Acad reads font files from?
« Reply #17 on: July 23, 2007, 05:10:42 PM »
I think I'd rather poke myself with a sharp stick, but thanks anyway.  :wink:

*adjusts scorecard, polishes up the "exit only" sign*

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #18 on: July 23, 2007, 05:22:02 PM »
I think I'd rather poke myself with a sharp stick, but thanks anyway.  :wink:

*adjusts scorecard, polishes up the "exit only" sign*

OK, call me dense, but I don't get the implications of that at all.  :|

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #19 on: July 23, 2007, 05:28:25 PM »
Kinda back on topic (no flame) ... Tim: If you want the actual font names just iterate the registry and create a reverse index of the keys / data:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

The key is the font name, the data is the font file.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

T.Willey

  • Needs a day job
  • Posts: 5251
Re: How to find out where Acad reads font files from?
« Reply #20 on: July 23, 2007, 05:47:08 PM »
Thanks Michael.  Not sure yet if I want to go this route, but it's nice to have the option and knowledge.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How to find out where Acad reads font files from?
« Reply #21 on: July 23, 2007, 07:26:15 PM »
Try this:
Code: [Select]
;;  Get the Windows Installed Fonts & the font file name
(defun get-fontList (/ dev reg)
  (if (or
        (setq dev "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Fonts"
              reg (vl-registry-descendents dev "*")
        )
        (setq dev "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"
              reg (vl-registry-descendents dev "*")
        )
      )
    (mapcar '(lambda(x) (list x (vl-registry-read dev x))) reg)
    )
)

;|  Returns a list
(("Caesar Regular (TrueType)" "C:\\WINDOWS\\Fonts\\caesar.TTF")
  ("Metro Regular (TrueType)" "C:\\WINDOWS\\Fonts\\metro.TTF")
  ("Zurich Extended BT (TrueType)" "C:\\WINDOWS\\Fonts\\ZURCHE.TTF")
  ("Arcitectura (TrueType)" "archtura.ttf")
  ("AMGDT (TrueType)" "AMGDT___.TTF")
  ("AmdtSymbols (TrueType)" "AMDT_Symbols.ttf")
  ("AIGDT (TrueType)" "AIGDT___.TTF")
  ("AcadEref (TrueType)" "AcadEref.ttf")
  ("ISOCTEUR Italic (TrueType)" "isocteui.ttf")
  ("ISOCTEUR (TrueType)" "isocteur.ttf")
  ("ISOCPEUR Italic (TrueType)" "isocpeui.ttf")
  ("ISOCPEUR (TrueType)" "isocpeur.ttf")
  ("Proxy 9 (TrueType)" "mtproxy9.ttf")
  ("Proxy 8 (TrueType)" "mtproxy8.ttf")
  ("Proxy 7 (TrueType)" "mtproxy7.ttf")
  ("Proxy 6 (TrueType)" "mtproxy6.ttf")
  ("Proxy 5 (TrueType)" "mtproxy5.ttf")
  ("Proxy 4 (TrueType)" "mtproxy4.ttf")
  )
  |:
 
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: How to find out where Acad reads font files from?
« Reply #22 on: July 23, 2007, 07:35:41 PM »
The problem with going this way Alan is, when you try and set the FontFile property of the newly created style, you have to have the full path of the font.  Notice in some of the fonts listed they don't have the full path.  And you can't use 'findfile' on them.

I guess if they don't have a path, then you can see if they are located within the folder returned by Michael's code.  It's an idea I'm willing to play with, but I don't have time to test today, but should have some tomorrow.

Thanks Alan.  :-)

Quick example.
Quote from: Alan's code returned item ("Browallia New (TrueType)" "BROWA.TTF")
Command: (findfile "browa.ttf")
nil

Command: (findfile (strcat (_GetSpecialFolder "Fonts") "\\" "Browa.ttf"))
"C:\\WINDOWS\\Fonts\\Browa.ttf"
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How to find out where Acad reads font files from?
« Reply #23 on: July 23, 2007, 07:54:06 PM »
Exactly!
And a modified version of MP's code: (please forgive the hack)
Code: [Select]
(defun _GetSpecialFolders ( / wshShell specialFolders result )
    (vl-catch-all-apply
       '(lambda ( )
            (setq
                wshShell       (vlax-create-object "WScript.Shell")
                specialFolders (vlax-get wshShell 'SpecialFolders)
            )
            (setq result (vlax-invoke specialFolders 'Item "Fonts"))
        )
    )
    (if specialFolders (vlax-release-object specialFolders))
    (if wshShell (vlax-release-object wshShell))
    result
)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #24 on: July 23, 2007, 09:10:23 PM »
Code: [Select]
(defun _GetFontIndex ( / folder header footer result )

    (setq
        folder (_GetSpecialFolder "Fonts")
        header "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\"
        footer "\\CurrentVersion\\Fonts"
    )

    (vl-some
       '(lambda ( windows / key names paths )
            (and
                (setq
                    key   (strcat header windows footer)
                    names (vl-registry-descendents key "*")
                )
                (setq paths
                    (mapcar
                       '(lambda ( name / path )
                            (if
                                (eq ""
                                    (vl-filename-directory
                                        (setq path
                                            (vl-registry-read key name)
                                        )
                                    )
                                )
                                (strcat folder "\\" path)
                                path
                            )                           
                        )
                        names
                    )
                )
                (setq result
                    (mapcar 'cons
                        names
                        paths
                    )
                )
            )
        )
       '( "Windows NT" "Windows" )
    )
   
    (vl-sort
        result
       '(lambda ( a b ) (< (car a) (car b)))
    )
   
)

("AIGDT (TrueType)" . "C:\\Windows\\Fonts\\AIGDT___.TTF")
("AMGDT (TrueType)" . "C:\\Windows\\Fonts\\AMGDT___.TTF")
("AcadEref (TrueType)" . "C:\\Windows\\Fonts\\AcadEref.ttf")
...
("MT Extra (TrueType)" . "C:\\Program Files\\Common Files\\Microsoft Shared\\EQUATION\\MTEXTRA.TTF")
...
("Wingdings (TrueType)" . "C:\\Windows\\Fonts\\wingding.ttf")
("Wingdings 2 (TrueType)" . "C:\\Windows\\Fonts\\WINGDNG2.TTF")
("Wingdings 3 (TrueType)" . "C:\\Windows\\Fonts\\WINGDNG3.TTF")

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #25 on: July 23, 2007, 09:21:28 PM »
I think I'd rather poke myself with a sharp stick, but thanks anyway.  :wink:

*adjusts scorecard, polishes up the "exit only" sign*

OK, call me dense, but I don't get the implications of that at all.  :|

...and evidently nobody's going to bother to explain it either.

*sigh*

Maverick®

  • Seagull
  • Posts: 14778
Re: How to find out where Acad reads font files from?
« Reply #26 on: July 23, 2007, 09:44:42 PM »
 Believe me.  It's better that way.  :-D

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #27 on: July 23, 2007, 10:11:05 PM »
...and evidently nobody's going to bother to explain it either.

*sigh*

Dude it's all spelled out pretty clear here.

:)

Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #28 on: July 23, 2007, 11:56:27 PM »
Oh, great! Next you'll be telling me the significance of the Time Kube and the Spork.  :roll:

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: How to find out where Acad reads font files from?
« Reply #29 on: July 24, 2007, 08:28:30 AM »
... the Spork. ...

Any self respecting geek will maintain posession of a titanium spork
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #30 on: July 24, 2007, 09:27:27 AM »
Ha ha! You foon! You fell victim to one of the classic blunders! The most famous is never get involved in a land war in Asia, but only slightly less well-known is ...
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #31 on: July 24, 2007, 09:46:06 AM »
... the Spork. ...

Any self respecting geek will maintain posession of a titanium spork

Yeah, thanks, but sporks are evil. I discovered this when one attacked my giant plush microbe.
« Last Edit: July 24, 2007, 09:47:37 AM by CaddmannQ »

T.Willey

  • Needs a day job
  • Posts: 5251
Re: How to find out where Acad reads font files from?
« Reply #32 on: July 24, 2007, 01:04:10 PM »
Ha ha! You foon! You fell victim to one of the classic blunders! The most famous is never get involved in a land war in Asia, but only slightly less well-known is ...
I know where that is from, but I just can't think of the next line right now.  I know kind of what it has to do with, put can't say it exactly.

On track:  Michael I think that code will work for what I want.  I haven't tested it yet, but will soon.  I might change it, so that it will get the fonts in the default Acad folders also.  Thanks.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: How to find out where Acad reads font files from?
« Reply #33 on: July 24, 2007, 01:21:38 PM »
I know where that is from, but I just can't think of the next line right now.

Princess Bride: "... never go in against a Sicilian when death is on the line! Ha ha ha ha ha ha ha! Ha ha ha ha ha ha ha! Ha ha ha ..."

{ plonk }

Michael I think that code will work for what I want.  I haven't tested it yet, but will soon.  I might change it, so that it will get the fonts in the default Acad folders also.  Thanks.

Use / Abuse / Hope it helps / My pleasure.

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: How to find out where Acad reads font files from?
« Reply #34 on: July 24, 2007, 03:37:11 PM »
C:\Windows\Fonts is the only location a TTF can be installed as far as I know.
I have TTF fonts in my Autocad\fonts folder
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

CaddmannQ

  • Guest
Re: How to find out where Acad reads font files from?
« Reply #35 on: July 24, 2007, 03:52:44 PM »
C:\Windows\Fonts is the only location a TTF can be installed as far as I know.
I have TTF fonts in my Autocad\fonts folder

You can put them there, but they won't work unless they are in the Windows Font folder as well.