Platforms to show: All Mac Windows Linux Cross-Platform

CTRunMBS class

Super class: CFObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The CTRun opaque type represents a glyph run, which is a set of consecutive glyphs sharing the same attributes and direction.

The typesetter creates glyph runs as it produces lines from character strings, attributes, and font objects. That is, a line is constructed of one or more glyphs runs. Glyph runs can draw themselves into a graphic context, if desired, although most users have no need to interact directly with glyph runs.
Subclass of the CFObjectMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Constants

Constant Value Description
kCTRunStatusHasNonIdentityMatrix 4 One of the possible values for the status bitfield. The run requires a specific text matrix to be set in the current Core Graphics context for proper drawing.
Use BitwiseAnd() to check if the status has a given value.
kCTRunStatusNonMonotonic 2 One of the possible values for the status bitfield. The run has been reordered in some way such that the string indices associated with the glyphs are no longer strictly increasing (for left-to-right runs) or decreasing (for right-to-left runs). more
kCTRunStatusNoStatus 0 One of the possible values for the status bitfield. The run has no special attributes.
kCTRunStatusRightToLeft 1 One of the possible values for the status bitfield. The run proceeds from right to left.
Use BitwiseAnd() to check if the status has a given value.

Super class CFObjectMBS

This class has no sub classes.

Some methods using this class:

Blog Entries

Release notes

  • Version 22.2
    • Improved Glyphs, Positions, Advances, and StringIndices to handle NULL buffer situation better in CTRunMBS class.

The items on this page are in the following plugins: MBS MacCF Plugin, MBS MacCG Plugin.


CTRunDelegateMBS   -   CTTextTabMBS


The biggest plugin in space...