Vertical adjustment options.


Baseline adjustment options determine how to adjust the position of text in cases where the text must be drawn using a different font size than the one originally specified. For example, with the alignBaselines option, the position of the baseline remains fixed at its initial location while the text appears to move toward that baseline. Similarly, the none option makes it appear as if the text is moving upwards towards the top-left corner of the bounding box.



case alignBaselines

Adjust text relative to the position of its baseline.

case alignCenters

Adjust text based relative to the center of its bounding box.

case none

Adjust text relative to the top-left corner of the bounding box. This is the default adjustment.

See Also


class NSStringDrawingContext

An object that manages metrics used when drawing attributed strings.

struct NSStringDrawingOptions

Constants for the rendering options for a string when it is drawn.