1. 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")?

new topic     » topic index » view message » categorize

2. Re: Getting Font File Path

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
>
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: Getting Font File Path

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")?

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu