ScriptCacheGetHeight function (usp10.h)

Retrieves the height of the currently cached font.


HRESULT ScriptCacheGetHeight(
  [in]      HDC          hdc,
  [in, out] SCRIPT_CACHE *psc,
  [out]     long         *tmHeight


[in] hdc

Optional. Handle to the device context. For more information, see Caching.

[in, out] psc

Pointer to a SCRIPT_CACHE structure identifying the script cache.

[out] tmHeight

Pointer to a buffer in which the function retrieves the font height.

Return value

Returns 0 if successful. The function returns a nonzero HRESULT value if it does not succeed. The application can test the return value with the SUCCEEDED and FAILED macros.


Important  Starting with Windows 8: To maintain the ability to run on Windows 7, a module that uses Uniscribe must specify Usp10.lib before gdi32.lib in its library list.


Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header usp10.h
Library Usp10.lib
DLL Usp10.dll
Redistributable Internet Explorer 5 or later on Windows Me/98/95

See also




Uniscribe Functions