次の方法で共有


ScriptGetGlyphABCWidth (Windows Embedded CE 6.0)

1/6/2010

This function returns the ABC width of a given glyph.

Syntax

HRESULT WINAPI ScriptGetGlyphABCWidth(
  HDC hdc, 
  SCRIPT_CACHE* psc,
  WORD wGlyph,
  ABC* pABC,
);

Parameters

  • hdc
    [in] Handle to the device context. It is optional depending on psc.
  • wGlyph
    [in] Glyph to be analyzed.
  • pABC
    [out] ABC width of wGlyph.

Return Value

If the ABC width of the glyph is returned, the function returns S_OK.

If the font or system does not support glyph indices, the function returns E_HANDLE. If any other unrecoverable error is encountered, it is returned as an HRESULT.

Remarks

The ScriptGetGlyphABCWidth function may be useful for drawing glyph charts. It should not be used for ordinary complex script text formatting.

Requirements

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

See Also

Reference

SCRIPT_CACHE

Other Resources

Uniscribe Functions