FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Properties
Description
If set to true and the font is installed on the system viewing the Flash movie, the font information installed on the system will be substituted. Text will be aliased (rough) despite the value of the quality attribute. If the font is not installed on the system, the text will come out anti-aliased (smooth) as long as the quality of the movie is set at high.
Messages
FPCM_GET_DEVICEFONT
FPCM_PUT_DEVICEFONT |
Structures
struct SFPCGetDeviceFont
{
VARIANT_BOOL DeviceFont;
HRESULT hr;
};
struct SFPCPutDeviceFont
{
VARIANT_BOOL DeviceFont;
HRESULT hr;
};
|
Example
void GetDeviceFont(HWND hwndFlashPlayerControl)
{
SFPCGetDeviceFont info;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_DEVICEFONT, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.DeviceFont);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
void PutDeviceFont(HWND hwndFlashPlayerControl, VARIANT_BOOL DeviceFont)
{
SFPCPutDeviceFont info;
info.DeviceFont = DeviceFont;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_DEVICEFONT, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
}
}
|
Flash versions
5: supported
6: supported
7: supported
Copyright © 2004 Softanics. All rights reserved.
Delphi is a trademark of Borland Software Corporation.
Macromedia and Shockwave Flash are trademarks of Macromedia, Inc.
|