# Function Reference

# _WinAPI_SetTextCharacterExtra

Sets the intercharacter spacing for the specified device context

#include <WinAPIGdi.au3>
_WinAPI_SetTextCharacterExtra ( $hDC, $iCharExtra )

## Parameters

$hDC | Handle to the device context.
$iCharExtra | The amount of extra space, in logical units, to be added to each character.

## Return Value

Success: | The previous intercharacter spacing.
Failure: | (-1).

## Remarks

This function is supported mainly for compatibility with existing applications?
The recommended approach is that instead of calling this function and then TextOut,
applications should call ExtTextOut and use its lpDx parameter to supply widths.

## See Also

Search SetTextCharacterExtra in MSDN Library.