ScriptPlace (Windows Embedded CE 6.0)

1/6/2010

This function takes the output of a ScriptShape call and generates glyph advance width and two-dimensional offset information.

Syntax

HRESULT WINAPI ScriptPlace(
  HDC hdc, 
  SCRIPT_CACHE* psc, 
  const WORD* pwGlyphs, 
  int cGlyphs, 
  const SCRIPT_VISATTR* psva, 
  SCRIPT_ANALYSIS* psa, 
  int* piAdvance, 
  GOFFSET* pGoffset, 
  ABC* pABC 
);

Parameters

  • hdc
    [in] Handle to the device context.
  • pwGlyphs
    [in] Pointer to a glyph buffer obtained from an earlier call to the ScriptShape function.
  • cGlyphs
    [in] Count of glyphs in the glyph buffer.
  • piAdvance
    [out] Pointer to an array that receives the advance width information.
  • pGoffset
    [out] Pointer to a GOFFSET structure that receives the x and y offset of the combining glyph.
  • pABC
    [out] Pointer to an ABC structure that receives the ABC widths for the entire run.

Return Value

If the function succeeds, the return value is zero.

If the function fails, it returns a nonzero value. If any other unrecoverable error is encountered, it is returned as an HRESULT.

Remarks

The composite ABC width for the whole item identifies how much the glyphs overhang to the left of the start position and to the right of the length implied by the sum of the advance widths. The total advance width of the line is exactly abcA+abcB+abcC. The abcA and abcC values are maintained as proportions of the cell height represented in 8 bits and are thus roughly +/-1%. The total width returned, which is the sum of the abcA+abcB+abcC values pointed to by piAdvance, is accurate to the resolution of the TrueType shaping engine.

All arrays are in visual order unless the fLogicalOrder member is set in the psa parameter.

Requirements

Header usp10.h
Library Uspce.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

ScriptItemize
ScriptShape
SCRIPT_ANALYSIS
SCRIPT_CACHE
SCRIPT_VISATTR
GOFFSET

Other Resources

Uniscribe Functions