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 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.
- 6 properties
- property AttributeValues as Dictionary
- property GlyphCount as Integer
- property Status as Integer
- property StringRangeLength as Integer
- property StringRangeLocation as Integer
- property TextMatrix as CGAffineTransformMBS
- 8 methods
- method Advances as CGSizeMBS()
- method Constructor Private
- method Draw(context as CGContextMBS, location as Integer, length as Integer = 0)
- method Glyphs as Integer()
- method ImageBounds(context as CGContextMBS, location as Integer, length as Integer) as CGRectMBS
- method Positions as CGPointMBS()
- method StringIndices as Integer()
- method TypographicBounds(location as Integer, length as Integer, byref ascent as Double, byref descent as Double, byref leading as Double) as Double
- shared method Available as boolean
- 4 constants
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
- 5 properties
- property Handle as Integer
- property Hash as Integer
- property Lasterror as Integer
- property Type as Integer
- property TypeDescription as String
- 9 methods
- method close
- method DeepCopy as CFObjectMBS
- method EncodedData as MemoryBlock
- method Equal(o as CFObjectMBS) as boolean
- method ReleaseObject
- method RetainCount as Integer
- method RetainObject
- method XML as CFBinaryDataMBS
- method XMLdata as String
- shared method NewCFObject(handle as Integer) as CFObjectMBS
This class has no sub classes.
Some methods using this class:
- CTLineMBS.GlyphRuns as CTRunMBS()
Blog Entries
- MBS Xojo Plugins, version 22.2pr3
- MBS Xojo / Real Studio Plugins, version 15.1pr7
- CoreText Completed
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