Hello,
following is a working example (assuming there is font resource named Application::Font). The value clipRect should correspond to the area being updated in canvas. textRect should be the area of the text inside the canvas. Crucial and possibly a little bit problematic is srcPos. It is an offset in source coordinates to arrange the text relative to the top-left corner of textRect. Therefore it is negative. This was tested with EM v14 but should work with v9.30. See also documentation:
var point srcPos = point( 0, -Application::Font.Ascent );
aCanvas.DrawText( clipRect, Application::Font, "Hello world", 0, -1, textRect, srcPos, 0, Views::Orientation.Normal, #000000FF, #000000FF, #000000FF, #000000FF, true );
Best regards
Paul Banach