Platform SDK: International Features

ScriptString_pSize

The ScriptString_pSize function returns a pointer to a SIZE structure for an analyzed string.

const SIZE* WINAPI ScriptString_pSize(
  SCRIPT_STRING_ANALYSIS ssa  
);

Parameters

ssa
[in] A SCRIPT_STRING_ANALYSIS structure for a string.

Return Values

If the function is successful, it returns a pointer to the size (width and height) of an analyzed string.

If the function fails, it returns NULL. And if any other unrecoverable error is encountered, it is also returned as HRESULT. For example, error returns from Win32 API functions are converted to HRESULT using the HRESULT_FROM_WIN32 macro and returned to the client in the HRESULT.

Remarks

The SIZE pointer remains valid only until the associated ssa is passed to ScriptStringFree.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Usp10.h.
  Library: Use Usp10.lib.

See Also

Uniscribe Overview, Uniscribe Functions, ScriptStringFree, SCRIPT_STRING_ANALYSIS, SIZE