[usp10] Add stubbed support for ScriptGetFontProperties - os -2

Oliver Stieber oliver_stieber at yahoo.co.uk
Sun Jul 31 13:27:45 CDT 2005


--- Oliver Stieber <oliver_stieber at yahoo.co.uk> wrote:

> Hi,
>    This patch adds stubbed support for ScriptGetFontProperties which is used by d3dxof fonts if
> usp10.dll is found. I recommend disabling usp10.dll (uniscribe support) or using usp10.dll from
> windows for now otherwise some text won't be displayed properly.
> 
With a return value..
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/uniscrib_17zn.asp

> 
> 		
> ___________________________________________________________ 
> To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
http://uk.security.yahoo.com> Index: dlls/usp10/usp10.c
> ===================================================================
> RCS file: /home/wine/wine/dlls/usp10/usp10.c,v
> retrieving revision 1.1
> diff -u -r1.1 usp10.c
> --- dlls/usp10/usp10.c	27 Jul 2005 11:02:52 -0000	1.1
> +++ dlls/usp10/usp10.c	31 Jul 2005 16:08:55 -0000
> @@ -51,6 +51,20 @@
>      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;
> +    }
> +
> +}
> +
>  HRESULT WINAPI ScriptRecordDigitSubstitution(LCID Locale,SCRIPT_DIGITSUBSTITUTE *psds)
>  {
>      FIXME("%ld,%p\n",Locale,psds);
> Index: dlls/usp10/usp10.spec
> ===================================================================
> RCS file: /home/wine/wine/dlls/usp10/usp10.spec,v
> retrieving revision 1.1
> diff -u -r1.1 usp10.spec
> --- dlls/usp10/usp10.spec	27 Jul 2005 11:02:52 -0000	1.1
> +++ dlls/usp10/usp10.spec	31 Jul 2005 16:08:55 -0000
> @@ -6,7 +6,7 @@
>  @ stub ScriptCPtoX
>  @ stub ScriptFreeCache
>  @ stub ScriptGetCMap
> -@ stub ScriptGetFontProperties
> +@ stdcall ScriptGetFontProperties(ptr ptr ptr)
>  @ stub ScriptGetGlyphABCWidth
>  @ stub ScriptGetLogicalWidths
>  @ stdcall ScriptGetProperties(ptr long)
> 


		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usp10-stubbed-ScriptGetFontProperties-os-2.patch
Type: text/x-diff
Size: 1488 bytes
Desc: 3497360673-usp10-stubbed-ScriptGetFontProperties-os-2.patch
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050731/37bdda9e/usp10-stubbed-ScriptGetFontProperties-os-2.bin


More information about the wine-patches mailing list