SCRIPT_CACHE (Windows Embedded CE 6.0)

1/6/2010

This structure is an opaque pointer to a Uniscribe font-metric cache structure.

Syntax

typedef void *SCRIPT_CACHE; 

Members

None.

Remarks

The client must allocate and retain one SCRIPT_CACHE variable for each character style used. It must be initialized by the client to NULL.

Many script functions take a combination of HDC and SCRIPT_CACHE. Uniscribe will first attempt to access font data by using the SCRIPT_CACHE and will only inspect the HDC if the required data is not already cached.

The HDC may be passed as NULL. If data required by Uniscribe is already cached, the HDC 'will not be accessed, and the operation continues normally.

If the HDC is passed as NULL, and Uniscribe needs to access it for any reason, Uniscribe will return E_PENDING.

E_PENDING is returned quickly, allowing the client to avoid time-consuming SelectObject calls.

Requirements

Header usp10.h
Windows Embedded CE Windows CE 5.0 and later

See Also

Other Resources

Uniscribe Structures
SelectObject