usp10: Set defaults for ScriptGetFontProperties.
Set defaults similar to Win XP for Kashida and set the default char in ScriptGetFontProperties.
This commit is contained in:
parent
9c6c83e97f
commit
9be30c83ca
|
@ -123,6 +123,7 @@ HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPR
|
|||
{
|
||||
HDC phdc;
|
||||
Scriptcache *pScriptcache;
|
||||
TEXTMETRICW ptm;
|
||||
|
||||
TRACE("%p,%p,%p\n", hdc, psc, sfp);
|
||||
if (!hdc && !*psc) {
|
||||
|
@ -146,9 +147,12 @@ HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPR
|
|||
/* return something sensible? */
|
||||
if (NULL != sfp) {
|
||||
sfp->wgBlank = 0;
|
||||
sfp->wgDefault = 0;
|
||||
if (GetTextMetricsW(phdc, &ptm))
|
||||
sfp->wgDefault = ptm.tmDefaultChar;
|
||||
else
|
||||
sfp->wgDefault = 0;
|
||||
sfp->wgInvalid = 0;
|
||||
sfp->wgKashida = 1;
|
||||
sfp->wgKashida = 0xffff;
|
||||
sfp->iKashidaWidth = 0;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue