Added stubbed support for ScriptGetFontProperties.

oldstable
Oliver Stieber 2005-08-01 09:18:53 +00:00 committed by Alexandre Julliard
parent 9fb00ff5c8
commit b671180c6a
3 changed files with 28 additions and 1 deletions

View File

@ -51,6 +51,21 @@ HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumSc
return E_NOTIMPL;
}
HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPROPERTIES *sfp)
{
FIXME("%p,%p,%p\n", hdc, psc, sfp);
/* return something sensible? */
if (NULL != sfp) {
sfp->cBytes = sizeof(SCRIPT_FONTPROPERTIES);
sfp->wgBlank = 0;
sfp->wgDefault = 0;
sfp->wgInvalid = 0;
sfp->wgKashida = 1;
sfp->iKashidaWidth = 0;
}
return 0;
}
HRESULT WINAPI ScriptRecordDigitSubstitution(LCID Locale,SCRIPT_DIGITSUBSTITUTE *psds)
{
FIXME("%ld,%p\n",Locale,psds);

View File

@ -6,7 +6,7 @@
@ stub ScriptCPtoX
@ stub ScriptFreeCache
@ stub ScriptGetCMap
@ stub ScriptGetFontProperties
@ stdcall ScriptGetFontProperties(long ptr ptr)
@ stub ScriptGetGlyphABCWidth
@ stub ScriptGetLogicalWidths
@ stdcall ScriptGetProperties(ptr long)

View File

@ -87,6 +87,17 @@ typedef struct tag_SCRIPT_DIGITSUBSTITUTE {
DWORD dwReserved;
} SCRIPT_DIGITSUBSTITUTE;
typedef struct tag_SCRIPT_FONTPROPERTIES {
int cBytes;
WORD wgBlank;
WORD wgDefault;
WORD wgInvalid;
WORD wgKashida;
int iKashidaWidth;
} SCRIPT_FONTPROPERTIES;
typedef void *SCRIPT_CACHE;
/* Function Declairations */
HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts);
@ -96,5 +107,6 @@ HRESULT WINAPI ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE* psds,
HRESULT WINAPI ScriptItemize(const WCHAR *pwcInChars, int cInChars, int cMaxItems,
const SCRIPT_CONTROL *psControl, const SCRIPT_STATE *psState,
SCRIPT_ITEM *pItems, int *pcItems);
HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPROPERTIES *sfp);
#endif /* __USP10_H */