Fixes QFontDataBase addApplicationFont on WEC.

AddFontResourceExW was not implemented yet.

Change-Id: Iffa3e49bdbb0176c10324ede6161fcf8b2a63902
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Bjoern Breitmeyer 2014-05-14 15:35:41 +02:00 committed by Björn Breitmeyer
parent 000d98d826
commit 863a8bfab5

View File

@ -271,14 +271,19 @@ typedef struct tagTTPOLYCURVE
#define WM_DRAWCLIPBOARD 0x0308
#endif
#include <QFileInfo>
inline bool IsIconic( HWND /*hWnd*/ )
{
return false;
}
inline int AddFontResourceExW( LPCWSTR /*name*/, DWORD /*fl*/, PVOID /*res*/)
inline int AddFontResourceExW( LPCWSTR name, DWORD /*fl*/, PVOID /*res*/)
{
return 0;
QString fName = QString::fromWCharArray(name);
QFileInfo fileinfo(fName);
fName = fileinfo.absoluteFilePath();
return AddFontResource((LPCWSTR)fName.utf16());
}
inline bool RemoveFontResourceExW( LPCWSTR /*name*/, DWORD /*fl*/, PVOID /*pdv*/)