Measuring lines

TTextLineLayout provides a set of functions you can use to retrieve measurement information about the line. Use these functions to retrieve information to use for line-breaking. Information used to position a line should be computed by the TLinePlacement object for the line.

TTextLineLayout computes the following information:

Retrieve this information with the functions GetAscentAndDescent, GetHeight, and GetWidth. The GetMeasurements function returns all this information.

TTextLineLayout also provides the following measurement functions:

You should pass ideal resolutions to the TTextLineLayout measurement functions. See the online class and member function descriptions for more information about these functions.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker