Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Font
Message
 
To
04/09/1997 18:06:08
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00048556
Message ID:
00048664
Views:
30
>>>What does this code do?
>>>
>>>DECLARE INTEGER AddFontResource IN win32api STRING
>>>=AddFontResource("ARIALN.TTF")
>>>
>>>Thanks
>>>Elyse
>>
>>Basically it adds a font to the Windows font table. Once this is done it can be used by an application. In this case it's a True Type Font.
>>
>>George
>
>How come after I ran it I didn't see the font added to my Control Panel\Fonts list? (Although my apllication did seem to know about the font)
>
>Elyse

Elyse,

If you had the Fonts window open when you issued the function call, I'd guess that the reason it didn't show immediately afterwards is that the window hadn't been refreshed. When you select View/Refresh, the fonts list is reloaded. When you call the fonts list from within an application, it loads the list when you call the dialog.

George
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform