Platform SDK: International Features

ScriptGetGlyphABCWidth

The ScriptGetGlyphABCWidth function returns the ABC width of a given glyph.

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.
psc
[in/out] Pointer to a SCRIPT_CACHE structure.
wGlyph
[in] Glyph to be analyzed.
pABC
[out] ABC width of wGlyph.

Return Values

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. 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 ScriptGetGlyphABCWidth function may be useful for drawing glyph charts. It should not be used for ordinary complex script text formatting.

Requirements

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

See Also

Uniscribe Overview, Uniscribe Functions, SCRIPT_CACHE