ScriptStringGetOrder function (usp10.h)
Creates an array that maps an original character position to a glyph position.
Syntax
HRESULT ScriptStringGetOrder(
[in] SCRIPT_STRING_ANALYSIS ssa,
[out] UINT *puOrder
);
Parameters
[in] ssa
A SCRIPT_STRING_ANALYSIS structure for the string.
[out] puOrder
Pointer to a buffer in which this function retrieves an array of glyph positions, indexed by the original character position. The array should have room for at least the number of integers indicated by the ssa parameter of ScriptString_pcOutChars.
Return value
Returns S_OK 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.
Remarks
When the number of glyphs and the number of characters are equal, the function retrieves an array that references every glyph. This is the same treatment that occurs in GetCharacterPlacement.
To use this function, the application needs to specify SSA_GLYPHS in its original call to ScriptStringAnalyse.
Requirements
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 |