Commit b671180c authored by Oliver Stieber's avatar Oliver Stieber Committed by Alexandre Julliard

Added stubbed support for ScriptGetFontProperties.

parent 9fb00ff5
...@@ -51,6 +51,21 @@ HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumSc ...@@ -51,6 +51,21 @@ HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumSc
return E_NOTIMPL; 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) HRESULT WINAPI ScriptRecordDigitSubstitution(LCID Locale,SCRIPT_DIGITSUBSTITUTE *psds)
{ {
FIXME("%ld,%p\n",Locale,psds); FIXME("%ld,%p\n",Locale,psds);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@ stub ScriptCPtoX @ stub ScriptCPtoX
@ stub ScriptFreeCache @ stub ScriptFreeCache
@ stub ScriptGetCMap @ stub ScriptGetCMap
@ stub ScriptGetFontProperties @ stdcall ScriptGetFontProperties(long ptr ptr)
@ stub ScriptGetGlyphABCWidth @ stub ScriptGetGlyphABCWidth
@ stub ScriptGetLogicalWidths @ stub ScriptGetLogicalWidths
@ stdcall ScriptGetProperties(ptr long) @ stdcall ScriptGetProperties(ptr long)
......
...@@ -87,6 +87,17 @@ typedef struct tag_SCRIPT_DIGITSUBSTITUTE { ...@@ -87,6 +87,17 @@ typedef struct tag_SCRIPT_DIGITSUBSTITUTE {
DWORD dwReserved; DWORD dwReserved;
} SCRIPT_DIGITSUBSTITUTE; } 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 */ /* Function Declairations */
HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts); HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumScripts);
...@@ -96,5 +107,6 @@ HRESULT WINAPI ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE* psds, ...@@ -96,5 +107,6 @@ HRESULT WINAPI ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE* psds,
HRESULT WINAPI ScriptItemize(const WCHAR *pwcInChars, int cInChars, int cMaxItems, HRESULT WINAPI ScriptItemize(const WCHAR *pwcInChars, int cInChars, int cMaxItems,
const SCRIPT_CONTROL *psControl, const SCRIPT_STATE *psState, const SCRIPT_CONTROL *psControl, const SCRIPT_STATE *psState,
SCRIPT_ITEM *pItems, int *pcItems); SCRIPT_ITEM *pItems, int *pcItems);
HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPROPERTIES *sfp);
#endif /* __USP10_H */ #endif /* __USP10_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment