1. Getting Font File Path
- Posted by euphoric <euphoric at cklester.com> Mar 19, 2004
- 415 views
What are some methods I can use to retrieve the font file path for a version of windows (such as "c:\winnit\fonts")?
2. Re: Getting Font File Path
- Posted by "Greg Haberek" <ghaberek at wowway.com> Mar 19, 2004
- 376 views
try this, i think it'll work on any windows: function get_font_path() object windir windir = getenv("windir") -- make sure the variable exists if atom(windir) then return "" end if -- make sure the path ends in a backslash if windir[length(windir)] != '\\' then windir &= '\\' end if return windir & "fonts\\" end function ----- Original Message ----- From: "C. K. Lester" <euphoric at cklester.com> To: <EUforum at topica.com> Sent: Friday, March 19, 2004 12:30 PM Subject: Getting Font File Path > > > What are some methods I can use to retrieve the font file path for a > version of windows (such as "c:\winnit\fonts")? > > > > For Topica's complete suite of email marketing solutions visit: > http://www.topica.com/?p=TEXFOOTER > >
3. Re: Getting Font File Path
- Posted by akusaya at gmx.net Mar 20, 2004
- 421 views
I recommend using the standard API call rather than appending "fonts" to windir. It is in kernel32. SHGetFolderPathA(0, #8000 + 20, 0, 0, x) x is char[260] then the result will be in x C> What are some methods I can use to retrieve the font file path for a C> version of windows (such as "c:\winnit\fonts")?