Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use GetGlyphOutline() API function??
Message
From
09/02/2000 13:36:58
 
 
To
09/02/2000 13:00:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00329550
Message ID:
00329575
Views:
23
>Would someone tell me how to use GetGlyphOutline API function??
>

It's far from trivial; you need to establish a device context to get an hDC, and then specify the character and format required. It returns three complex structures of basic interest, a GLYPHMETRICS, a MAT2 and the outline data in a buffer.

About the only thing I can see using it for would be for font rotation of a TrueType font; doing this will require calling into the Win32 API a great deal,and should probablybe done in another language like VC++. There is sample C++ code in the Platform SDK under the topic:

Platform SDK: Windows GDI
Using the Font and Text-Output Functions

that could be adapted to create either a COM object or a .DLL that you could call from VFP to perform the actual work.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform