I've tried to extract a single character into a char varible from a string but the result always was an isolated form of the character! e.g. I have a string like "سیب", and if I want to extract the second character, the usual codes give me the isolate form of it like "ی", but I want to have the middle form of it, so is there any clear function like windows api functions that I can use it for this problem?
specifically, I want to measure width of each character of my string at its position. In other cases, I've always used this codes:
var
S: string;
W: integer;
Begin
S := 'Abc';
W := canvas.textwidth(S[1]);
end;
But, in Farsi or Arabic strings, when I measure, it always returns width of isolated form of the specific character. I hope I could explain my problem clearly.