TFontCache.GetCharOffsets

function GetCharOffsets(const s: string): TArrayOfDouble;

This function returns an array of X offsets for each character in 's', with an additional value for the offset of the character that may follow 's'. Hence the returned array's length will be 1 more than that of 's'. These values will be influenced by the Kerning property. Note too that while the s parameter is 1 based, the returned array is 0 based though the first value always being 0.