ScriptGetGlyphABCWidth function (usp10.h)
Retrieves the ABC width of a given glyph.
Syntax
HRESULT ScriptGetGlyphABCWidth(
[in] HDC hdc,
[in, out] SCRIPT_CACHE *psc,
[in] WORD wGlyph,
[out] ABC *pABC
);
Parameters
[in] hdc
Optional. Handle to the device context. For more information, see Caching.
[in, out] psc
Pointer to a SCRIPT_CACHE structure identifying the script cache.
[in] wGlyph
Glyph to analyze.
[out] pABC
Pointer to the ABC width of the specified glyph.
Return value
Returns S_OK if the ABC width of the glyph is retrieved. The function returns a nonzero HRESULT value if it does not succeed.
The function returns E_HANDLE if the font or operating system does not support glyph indexes.
Remarks
This function is limited in its usefulness. For example, it is useful for drawing glyph charts. It should not be used for ordinary complex script text formatting.
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 |