>>Can anyone enlighten me on a Win32 call to register fonts in Win95/NT?
>>
>>Thanks
>>
>>Wayne
>
>Just to expand a bit on what Ed told you, AddFontResource does not install the font. It simply allows the application calling the function to use it. Further, if a call to SendMessage is not made, no other application will have access to it. The function returns the number of fonts loaded. It is not limited to True Type Fonts (TTF files, which are raw), but can also be used to load a .FON font resource file, a .FNT raw bitmap font file, or a .FOT TrueType resource file.
>
>hth,
Well, is there a call to actually install the font? I am attempting to install fonts that a user's machine may or may not have.
I previously tried Edward's suggestion, and did not see any results of the call.
***AddFontResource, RemoveFontResource
DECLARE INTEGER AddFontResource IN win32api STRING
=AddFontResource("some.ttf")
Am I missing something here?
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown