Platform SDK: International Features

ScriptGetFontProperties

The ScriptGetFontProperties returns information from the font cache on the special glyphs used by a font .

HRESULT WINAPI ScriptGetFontProperties(
  HDC hdc, 
  SCRIPT_CACHE *psc, 
  SCRIPT_FONTPROPERTIES *sfp 
);

Parameters

hdc
[in] Handle to a device context. This parameter is optional.
psc
[in/out] Pointer to a SCRIPT_CACHE structure.
sfp
[out] Pointer to a SCRIPT_FONTPROPERTIES structure to receive the information from the font cache.

Return Values

If the function succeeds, the return value is zero.

If the function fails, it returns a nonzero value. 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

ScriptGetFontProperties gets a SCRIPT_FONTPROPERTIES structure that tells what glyphs are used for blanks, missing glyphs, invalid combinations, and the smallest kashida.

Requirements

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

See Also

Uniscribe Overview, Uniscribe Functions, SCRIPT_CACHE, SCRIPT_FONTPROPERTIES