ScriptStringGetLogicalWidths (Compact 2013)

3/28/2014

This function converts visual widths into logical widths.

Syntax

HRESULT WINAPI ScriptStringGetLogicalWidths(
  SCRIPT_STRING_ANALYSIS ssa, 
  int* piDx 
);

Parameters

  • piDx
    [out] Pointer to a buffer containing the logical widths that are returned. The buffer should have room for at least *ScriptString_pcOutChars(ssa) ints.

Return Value

If the function is successful, it returns S_OK.

If the function fails, it returns an HRESULT.

The return value can be tested with the SUCCEEDED and FAILED macros.

Remarks

This function converts the visual widths that were generated by ScriptStringAnalyse into logical widths, one per original character, in logical order.

This function requires that SSA_GLYPHS was requested in the original ScriptStringAnalyse call.

Requirements

Header

usp10.h

Library

Uspce.lib

See Also

Reference

Uniscribe Functions
ScriptStringAnalyse
SCRIPT_STRING_ANALYSIS