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:
Jeff Latimer 2006-04-20 21:57:06 +10:00 committed by Alexandre Julliard
parent 9c6c83e97f
commit 9be30c83ca
1 changed files with 6 additions and 2 deletions

View File

@ -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;