![]() | InDesign SDK 20.5 |
#include <SLCLineMetrics.h>
Public Member Functions | |
| SLCLineMetrics (void) | |
| SLCLineMetrics (const SLCLineMetrics &h) | |
| SLCLineMetrics & | operator= (const SLCLineMetrics &h) |
| void | SetLeading (const PMReal &leading) |
| const PMReal & | GetLeading (void) const |
| void | SetAscent (const PMReal &ascent) |
| const PMReal & | GetAscent (void) const |
| void | SetCapHeight (const PMReal &capHeight) |
| const PMReal & | GetCapHeight (void) const |
| void | SetXHeight (const PMReal &xHeight) |
| const PMReal & | GetXHeight (void) const |
| const PMReal & | GetValue (const Text::FirstLineOffsetMetric &metric) const |
| void | Dump (const char *category, const char *msg) |
Tracks metrics during composition of the line. The maximum value in the line of metrics such as leading, ascent and cap height are tracked during composition.
The maximum value for leading is used to set the height of the line.
The maximum value of the appropriate metric is used to set the line height when the line falls at the top of a parcel. The offset of the first line of text in a parcel can be varied by a parameter called "first line offset", often abbreviated to FLO. This can take one of a number of metrics e.g. leading, ascent, cap height. Because of this the value of all of these matrics must be tracked as the line is composed.
kFLOFixedHeight note: We don't need to track the value of this metric as the line is composed. Fixed height is a property of the parcel that is not affected by the metrics of the text in the parcel. The tiler handles kFLOFixedHeight. All we need to ensure is that we pass in a non zero value for the top of frame height when asking for tiles. Fudge this by maintaining the kFLOFixedHeight to be the same as ascent.
| inline |
Default Constructor.
| inline |
Copy constructor.
| inline |
Dump the object to Trace.
| inline |
Gets the ascent value.
| inline |
Gets the cap height
| inline |
Gets the leading value
| inline |
Get the value of the given metric.
| metric | IN the desired metric (leading or whatever). |
| inline |
Gets the "X" height.
| inline |
Assignment operator.
| inline |
The value stored here by the composer is the maximum value of all runs in the line.
| inline |
The value stored here by the composer is the maximum value of all runs in the line.
| inline |
The value stored here by the composer is the maximum value of all runs in the line.
| inline |
The value stored here by the composer is the maximum value of all runs in the line.