I have modified my function like this:
Func WindowEditSetDefaultFont($hWnd, $iPoints, $sName, $iTabWidth = 4)
Local $hFont, $iTabStops
$hFont = _WinAPI_CreateFont($iPoints + 3, 0, 0, 0, $FW_NORMAL, False, False, False, $DEFAULT_CHARSET, $OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, $DEFAULT_QUALITY, 0, $sName)
_SendMessage($hWnd, $WM_SETFONT, $hFont, True)
_WinAPI_DeleteObject($hFont)
$iTabStops = $iTabWidth * 4
_SendMessage($hWnd, $EM_SETTABSTOPS, 1, $iTabStops, 0, "wparam", "uint*")
EndFunc ;==>WindowEditSetDefaultFont
You can enter $iTabWidth value directly 4 or 6 etc. always 100% fitting.
thanks lot, pixelsearch,
cheers mike