How to draw text on a canvas with left alignment?
<p>I want to draw a rectangle on a canvas and I want to fill it with text. I've tried with the below code, but it only succeeded with right alignment.</p>

<p>Can anyone help me? How can I draw text on a canvas with left alignment?</p>

<pre><code>{Header Table}
SetStyleHuruf(FCanvas, fsBold, 12, clWhite, 'Maiandra GD');
Brush.Color := color;
Rectangle(cx+50, cy-50, cx+370, cy - 30);
TextOut(round(cx + 215), cy-50, Name);`
</code></pre>