Search Locate Previous Next Contents

chText – low-level text output

This function is designed to complement chNote by providing a low-level call to output bulk text efficiently. Text is drawn in the currently set Note Font and style at absolute co-ordinates (in points) measured from the origin of the current frame.


Here a new frame (boxed and shadowed) has been used to make a suitable background for a table of figures.

It will normally help to set the margins and gutter to 0 so that all the text co-ordinates are measured from the lower left corner of the frame box you define.

chText mat

where <mat> is a 3-column matrix [;text vector,x,y] or a 3-element array with (text vector)(x-vector)(y-vector) (either x or y may be scalar). This is most useful for adding tabular data to charts, and is illustrated by the examples TK and Scatter in the RainPro workspace.



Continue to: chTextWidth – measure text
© Copyright Causeway Graphical Systems Ltd 2003