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:
parent
000d98d826
commit
863a8bfab5
@ -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*/)
|
||||
|
Loading…
Reference in New Issue
Block a user